summary refs log tree commit diff
path: root/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-11-04 18:08:31 +0100
committerAlyssa Ross <hi@alyssa.is>2023-11-07 10:01:10 +0100
commit772a2502f145f17ee6b08c1d3e28b6e10ea105e9 (patch)
tree21365deccea3398e384b2e3aa06c6798f2601443 /pkgs/development/compilers/llvm/16/compiler-rt/default.nix
parent3c43b804d4b6811cbafbe506113f12e45a13e19d (diff)
downloadnixpkgs-772a2502f145f17ee6b08c1d3e28b6e10ea105e9.tar
nixpkgs-772a2502f145f17ee6b08c1d3e28b6e10ea105e9.tar.gz
nixpkgs-772a2502f145f17ee6b08c1d3e28b6e10ea105e9.tar.bz2
nixpkgs-772a2502f145f17ee6b08c1d3e28b6e10ea105e9.tar.lz
nixpkgs-772a2502f145f17ee6b08c1d3e28b6e10ea105e9.tar.xz
nixpkgs-772a2502f145f17ee6b08c1d3e28b6e10ea105e9.tar.zst
nixpkgs-772a2502f145f17ee6b08c1d3e28b6e10ea105e9.zip
llvmPackages_16.compiler-rt: fix FreeBSD build
The clang_rt.crt* files are only built on Linux (see the
COMPILER_RT_HAS_CRT CMake variable).
Diffstat (limited to 'pkgs/development/compilers/llvm/16/compiler-rt/default.nix')
-rw-r--r--pkgs/development/compilers/llvm/16/compiler-rt/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/llvm/16/compiler-rt/default.nix b/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
index e45d1f8660b..9b6ab0a77c2 100644
--- a/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
+++ b/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
@@ -121,7 +121,7 @@ stdenv.mkDerivation {
   # Hack around weird upsream RPATH bug
   postInstall = lib.optionalString (stdenv.hostPlatform.isDarwin) ''
     ln -s "$out/lib"/*/* "$out/lib"
-  '' + lib.optionalString (useLLVM && !stdenv.hostPlatform.isWasm) ''
+  '' + lib.optionalString (useLLVM && stdenv.hostPlatform.isLinux) ''
     ln -s $out/lib/*/clang_rt.crtbegin-*.o $out/lib/crtbegin.o
     ln -s $out/lib/*/clang_rt.crtend-*.o $out/lib/crtend.o
     # Note the history of crt{begin,end}S in previous versions of llvm in nixpkg: