diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-02-23 13:44:01 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-27 10:56:20 +0000 |
commit | 4040a6d1314b770a4c38cd7979e6dd8fd779e3ad (patch) | |
tree | 52180102262b7dd7fdd8c130b1661c4df6f20620 /pkgs/development/compilers/llvm | |
parent | e731fba41489e3065dddccf64000564ae9cab5db (diff) | |
download | nixlib-4040a6d1314b770a4c38cd7979e6dd8fd779e3ad.tar nixlib-4040a6d1314b770a4c38cd7979e6dd8fd779e3ad.tar.gz nixlib-4040a6d1314b770a4c38cd7979e6dd8fd779e3ad.tar.bz2 nixlib-4040a6d1314b770a4c38cd7979e6dd8fd779e3ad.tar.lz nixlib-4040a6d1314b770a4c38cd7979e6dd8fd779e3ad.tar.xz nixlib-4040a6d1314b770a4c38cd7979e6dd8fd779e3ad.tar.zst nixlib-4040a6d1314b770a4c38cd7979e6dd8fd779e3ad.zip |
llvmPackages_git.compiler-rt: fix Glibc build
Copied from LLVM 15.
Diffstat (limited to 'pkgs/development/compilers/llvm')
-rw-r--r-- | pkgs/development/compilers/llvm/git/compiler-rt/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/compilers/llvm/git/compiler-rt/default.nix b/pkgs/development/compilers/llvm/git/compiler-rt/default.nix index cac41e6014d6..29509afbfdf2 100644 --- a/pkgs/development/compilers/llvm/git/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/git/compiler-rt/default.nix @@ -1,6 +1,6 @@ { lib, stdenv, llvm_meta, version , monorepoSrc, runCommand -, cmake, python3, xcbuild, libllvm, libcxxabi +, cmake, python3, xcbuild, libllvm, libcxxabi, libxcrypt , doFakeLibgcc ? stdenv.hostPlatform.isFreeBSD }: @@ -39,6 +39,8 @@ stdenv.mkDerivation { "-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON" "-DCMAKE_C_COMPILER_TARGET=${stdenv.hostPlatform.config}" "-DCMAKE_ASM_COMPILER_TARGET=${stdenv.hostPlatform.config}" + ] ++ lib.optionals (haveLibc && stdenv.hostPlatform.libc == "glibc") [ + "-DSANITIZER_COMMON_CFLAGS=-I${libxcrypt}/include" ] ++ lib.optionals (useLLVM || bareMetal || isMusl) [ "-DCOMPILER_RT_BUILD_SANITIZERS=OFF" "-DCOMPILER_RT_BUILD_XRAY=OFF" |