mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
libcxxabi: Fix build against compiler-rt-using clang
This commit is contained in:
parent
078a07708a
commit
5ca96b948c
@ -37,7 +37,8 @@ stdenv.mkDerivation rec {
|
||||
"-DLIBCXXABI_ENABLE_EXCEPTIONS=OFF"
|
||||
] ++ lib.optionals (!enableShared) [
|
||||
"-DLIBCXXABI_ENABLE_SHARED=OFF"
|
||||
];
|
||||
] ++ lib.optional stdenv.cc.isCompilerRT
|
||||
"-DLIBCXXABI_USE_COMPILER_RT=ON";
|
||||
|
||||
installPhase = if stdenv.isDarwin
|
||||
then ''
|
||||
|
@ -47,7 +47,8 @@ stdenv.mkDerivation rec {
|
||||
"-DLIBCXXABI_ENABLE_EXCEPTIONS=OFF"
|
||||
] ++ lib.optionals (!enableShared) [
|
||||
"-DLIBCXXABI_ENABLE_SHARED=OFF"
|
||||
];
|
||||
] ++ lib.optional stdenv.cc.isCompilerRT
|
||||
"-DLIBCXXABI_USE_COMPILER_RT=ON";
|
||||
|
||||
installPhase = if stdenv.isDarwin
|
||||
then ''
|
||||
|
@ -47,7 +47,9 @@ stdenv.mkDerivation rec {
|
||||
"-DLIBCXXABI_ENABLE_EXCEPTIONS=OFF"
|
||||
] ++ lib.optionals (!enableShared) [
|
||||
"-DLIBCXXABI_ENABLE_SHARED=OFF"
|
||||
];
|
||||
] ++ lib.optional stdenv.cc.isCompilerRT
|
||||
"-DLIBCXXABI_USE_COMPILER_RT=ON";
|
||||
|
||||
|
||||
installPhase = if stdenv.isDarwin
|
||||
then ''
|
||||
|
Loading…
Reference in New Issue
Block a user