diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-02-27 21:06:11 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-03-10 12:57:55 +0000 |
commit | 0fd04a591802cb92a244528eb1c65d68417df55d (patch) | |
tree | ece12543dc8543135238647639b504a5330421c2 /pkgs/development/compilers/llvm/12 | |
parent | 3816765e472a98482e26d0831a84d3b27cb56db8 (diff) | |
download | nixlib-0fd04a591802cb92a244528eb1c65d68417df55d.tar nixlib-0fd04a591802cb92a244528eb1c65d68417df55d.tar.gz nixlib-0fd04a591802cb92a244528eb1c65d68417df55d.tar.bz2 nixlib-0fd04a591802cb92a244528eb1c65d68417df55d.tar.lz nixlib-0fd04a591802cb92a244528eb1c65d68417df55d.tar.xz nixlib-0fd04a591802cb92a244528eb1c65d68417df55d.tar.zst nixlib-0fd04a591802cb92a244528eb1c65d68417df55d.zip |
llvmPackages.compiler-rt: enable libclang_rt.profile-....a build
Port of 94cad6ec1ad ("llvm 14 compiler-rt: enable libclang_rt.profile-....a build").
Diffstat (limited to 'pkgs/development/compilers/llvm/12')
-rw-r--r-- | pkgs/development/compilers/llvm/12/compiler-rt/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/compilers/llvm/12/compiler-rt/default.nix b/pkgs/development/compilers/llvm/12/compiler-rt/default.nix index 22e2ab9d5b2b..81889c721859 100644 --- a/pkgs/development/compilers/llvm/12/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/12/compiler-rt/default.nix @@ -34,8 +34,9 @@ stdenv.mkDerivation { "-DCOMPILER_RT_BUILD_SANITIZERS=OFF" "-DCOMPILER_RT_BUILD_XRAY=OFF" "-DCOMPILER_RT_BUILD_LIBFUZZER=OFF" - "-DCOMPILER_RT_BUILD_PROFILE=OFF" "-DCOMPILER_RT_BUILD_MEMPROF=OFF" + ] ++ lib.optionals (useLLVM || bareMetal) [ + "-DCOMPILER_RT_BUILD_PROFILE=OFF" ] ++ lib.optionals ((useLLVM && !haveLibc) || bareMetal) [ "-DCMAKE_C_COMPILER_WORKS=ON" "-DCMAKE_CXX_COMPILER_WORKS=ON" |