diff options
author | Yureka <yuka@yuka.dev> | 2022-08-15 11:49:43 +0200 |
---|---|---|
committer | Yuka <yuka@yuka.dev> | 2022-09-20 08:04:26 +0200 |
commit | 94cad6ec1ad7060fc8557f287c94321bf53f76c5 (patch) | |
tree | 45d3d27fabc6d08700d0f853f66c1fea27574486 /pkgs/development/compilers/llvm | |
parent | 9a3b4264c2876e03134b73a06a74068f0bb08b36 (diff) |
llvm 14 compiler-rt: enable libclang_rt.profile-....a build
Diffstat (limited to 'pkgs/development/compilers/llvm')
-rw-r--r-- | pkgs/development/compilers/llvm/14/compiler-rt/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/compilers/llvm/14/compiler-rt/default.nix b/pkgs/development/compilers/llvm/14/compiler-rt/default.nix index cc1a8dc0481f7..28c77d5ffb39f 100644 --- a/pkgs/development/compilers/llvm/14/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/14/compiler-rt/default.nix @@ -41,9 +41,10 @@ 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" "-DCOMPILER_RT_BUILD_ORC=OFF" # may be possible to build with musl if necessary + ] ++ lib.optionals (useLLVM || bareMetal) [ + "-DCOMPILER_RT_BUILD_PROFILE=OFF" ] ++ lib.optionals ((useLLVM && !haveLibc) || bareMetal) [ "-DCMAKE_C_COMPILER_WORKS=ON" "-DCMAKE_CXX_COMPILER_WORKS=ON" |