libcxxabi: Fix build against compiler-rt-using clang

This commit is contained in:
Shea Levy 2022-05-03 10:55:48 -04:00
parent 078a07708a
commit 5ca96b948c
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27
3 changed files with 7 additions and 3 deletions

View File

@ -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 ''

View File

@ -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 ''

View File

@ -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 ''