llvmPackages_7.libcxx: make sure to use compiler-rt if useLLVM

This reflects what the other llvmPackages sets are doing.
This commit is contained in:
sternenseemann 2021-04-17 16:59:35 +02:00
parent 486e12ad68
commit 55a476b00b

View file

@ -37,7 +37,8 @@ stdenv.mkDerivation {
"-DLIBCXX_LIBCPPABI_VERSION=2"
"-DLIBCXX_CXX_ABI=libcxxabi"
] ++ lib.optional stdenv.hostPlatform.isMusl "-DLIBCXX_HAS_MUSL_LIBC=1"
++ lib.optional (!enableShared) "-DLIBCXX_ENABLE_SHARED=OFF" ;
++ lib.optional (stdenv.hostPlatform.useLLVM or false) "-DLIBCXX_USE_COMPILER_RT=ON"
++ lib.optional (!enableShared) "-DLIBCXX_ENABLE_SHARED=OFF" ;
passthru = {
isLLVM = true;