mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 22:20:30 +03:00
llvmPackages_git.libcxxabi: fix build on Darwin
This commit is contained in:
parent
adc8950856
commit
db0c256417
1 changed files with 1 additions and 2 deletions
|
@ -68,8 +68,7 @@ stdenv.mkDerivation rec {
|
||||||
] ++ lib.optionals (stdenv.hostPlatform.useLLVM or false) [
|
] ++ lib.optionals (stdenv.hostPlatform.useLLVM or false) [
|
||||||
"-DLLVM_ENABLE_LIBCXX=ON"
|
"-DLLVM_ENABLE_LIBCXX=ON"
|
||||||
"-DLIBCXXABI_USE_LLVM_UNWINDER=ON"
|
"-DLIBCXXABI_USE_LLVM_UNWINDER=ON"
|
||||||
] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) ||
|
] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) || !stdenv.hostPlatform.isDarwin) [
|
||||||
(stdenv.hostPlatform.isDarwin && enableShared)) [
|
|
||||||
# libcxxabi's CMake looks as though it treats -nostdlib++ as implying -nostdlib,
|
# libcxxabi's CMake looks as though it treats -nostdlib++ as implying -nostdlib,
|
||||||
# but that does not appear to be the case for example when building
|
# but that does not appear to be the case for example when building
|
||||||
# pkgsLLVM.libcxxabi (which uses clangNoCompilerRtWithLibc).
|
# pkgsLLVM.libcxxabi (which uses clangNoCompilerRtWithLibc).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue