llvmPackages_git.libcxxabi: fix build on Linux and Darwin

The previous fix in db0c2564 broke *-linux.
This commit is contained in:
Raito Bezarius 2023-08-26 12:18:07 +02:00
parent e5e3e6e4d6
commit 6d6210ee9b

View File

@ -68,7 +68,6 @@ stdenv.mkDerivation rec {
] ++ lib.optionals (stdenv.hostPlatform.useLLVM or false) [
"-DLLVM_ENABLE_LIBCXX=ON"
"-DLIBCXXABI_USE_LLVM_UNWINDER=ON"
] ++ lib.optionals ((stdenv.hostPlatform.useLLVM or false) || !stdenv.hostPlatform.isDarwin) [
# 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
# pkgsLLVM.libcxxabi (which uses clangNoCompilerRtWithLibc).