forked from mirrors/nixpkgs
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 a new issue