mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Rearrange llvm dependencies slightly to avoid unnecessary dependencies on darwin (binutils is only used for gold integration, which doesn't apply on darwin)
This commit is contained in:
parent
ae0263f960
commit
c6ce6460c4
@ -41,9 +41,10 @@ in stdenv.mkDerivation rec {
|
|||||||
"-DCMAKE_BUILD_TYPE=Release"
|
"-DCMAKE_BUILD_TYPE=Release"
|
||||||
"-DLLVM_BUILD_TESTS=ON"
|
"-DLLVM_BUILD_TESTS=ON"
|
||||||
"-DLLVM_ENABLE_FFI=ON"
|
"-DLLVM_ENABLE_FFI=ON"
|
||||||
|
] ++ stdenv.lib.optionals (!isDarwin) [
|
||||||
|
"-DBUILD_SHARED_LIBS=ON"
|
||||||
"-DLLVM_BINUTILS_INCDIR=${binutils}/include"
|
"-DLLVM_BINUTILS_INCDIR=${binutils}/include"
|
||||||
] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON"
|
] ++ stdenv.lib.optionals ( isDarwin) [
|
||||||
++ stdenv.lib.optionals ( isDarwin) [
|
|
||||||
"-DCMAKE_CXX_FLAGS=-stdlib=libc++"
|
"-DCMAKE_CXX_FLAGS=-stdlib=libc++"
|
||||||
"-DCAN_TARGET_i386=false"
|
"-DCAN_TARGET_i386=false"
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user