···4646 "-DLIBCXX_ENABLE_THREADS=OFF"
4747 "-DLIBCXX_ENABLE_FILESYSTEM=OFF"
4848 "-DLIBCXX_ENABLE_EXCEPTIONS=OFF"
4949- ] ++ lib.optional (!enableShared) "-DLIBCXX_ENABLE_SHARED=OFF";
4949+ ] ++ lib.optional (!enableShared) "-DLIBCXX_ENABLE_SHARED=OFF"
5050+5151+ # TODO: this is a bit of a hack to cross compile to Apple Silicon. libcxx
5252+ # starting with 11 enables CMAKE_BUILD_WITH_INSTALL_NAME_DIR which requires
5353+ # platform setup for rpaths. In cmake, this is enabled when macos is newer
5454+ # than 10.5. However CMAKE_SYSTEM_VERSION is set to empty (TODO: why?)
5555+ # which prevents the conditional configuration, and configure fails. The
5656+ # value here corresponds to `uname -r`. If stdenv.hostPlatform.release is
5757+ # not null, then this property will be set via mkDerivation (TODO: how can
5858+ # we set this?).
5959+ ++ lib.optional (
6060+ stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 &&
6161+ stdenv.hostPlatform != stdenv.buildPlatform
6262+ ) "-DCMAKE_SYSTEM_VERSION=20.1.0";
50635164 passthru = {
5265 isLLVM = true;
···4848 # the magic combination of necessary CMake variables
4949 # if you fancy a try, take a look at
5050 # https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling
5151- install_name_tool -id $out/$file $file
5151+ ${stdenv.cc.targetPrefix}install_name_tool -id $out/$file $file
5252 done
5353 make install
5454 install -d 755 $out/include
+1
pkgs/top-level/all-packages.nix
···1484814848 inherit (stdenv.targetPlatform) libc;
1484914849 in if libc == "msvcrt" then targetPackages.windows.mingw_w64_headers or windows.mingw_w64_headers
1485014850 else if libc == "nblibc" then targetPackages.netbsdCross.headers or netbsdCross.headers
1485114851+ else if libc == "libSystem" && stdenv.targetPlatform.isAarch64 then targetPackages.darwin.LibsystemCross or darwin.LibsystemCross
1485114852 else null;
14852148531485314854 # We can choose: