mirror of https://github.com/mamba-org/mamba.git
apple-related workarounds
This commit is contained in:
parent
5741432ded
commit
f788cc07c5
|
@ -23,7 +23,7 @@ namespace mamba::logging
|
|||
// and avoid static-init-fiasco.
|
||||
// But depending on the implementation it is not always possible, so we pay
|
||||
// the locking cost in these platforms.
|
||||
#if defined(__apple_build_version__) // apple-clang
|
||||
#if defined(__apple_build_version__) or (defined(_LIBCPP_VERSION) and _LIBCPP_VERSION < 19) // apple-clang or libc++
|
||||
using params_mutex = std::mutex;
|
||||
#else
|
||||
using params_mutex = std::shared_mutex;
|
||||
|
|
|
@ -15,10 +15,13 @@
|
|||
#include <fmt/ostream.h>
|
||||
#include <fmt/xchar.h>
|
||||
#include <reproc++/run.hpp>
|
||||
#ifdef _WIN32
|
||||
#include <WinReg.hpp>
|
||||
|
||||
#include "mamba/util/os_win.hpp"
|
||||
#ifdef _WIN32
|
||||
# include <WinReg.hpp>
|
||||
|
||||
# include "mamba/util/os_win.hpp"
|
||||
#else
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "mamba/core/activation.hpp"
|
||||
|
|
Loading…
Reference in New Issue