summary refs log tree commit diff
path: root/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2023-10-27 18:20:22 -0400
committerRandy Eckenrode <randy@largeandhighquality.com>2023-10-27 18:24:36 -0400
commit71a741517a6f92acfa17d3ef4ecc2724aaa79f5e (patch)
treef2f90bfe8952501f92948e9f250bdd5f01a80cd6 /pkgs/development/compilers/llvm/16/compiler-rt/default.nix
parentb3cc6b829bc1b1d3ac9510d39927cea6d7c0725e (diff)
downloadnixpkgs-71a741517a6f92acfa17d3ef4ecc2724aaa79f5e.tar
nixpkgs-71a741517a6f92acfa17d3ef4ecc2724aaa79f5e.tar.gz
nixpkgs-71a741517a6f92acfa17d3ef4ecc2724aaa79f5e.tar.bz2
nixpkgs-71a741517a6f92acfa17d3ef4ecc2724aaa79f5e.tar.lz
nixpkgs-71a741517a6f92acfa17d3ef4ecc2724aaa79f5e.tar.xz
nixpkgs-71a741517a6f92acfa17d3ef4ecc2724aaa79f5e.tar.zst
nixpkgs-71a741517a6f92acfa17d3ef4ecc2724aaa79f5e.zip
llvmPackages_16.compiler-rt: fix wasi32 build
Diffstat (limited to 'pkgs/development/compilers/llvm/16/compiler-rt/default.nix')
-rw-r--r--pkgs/development/compilers/llvm/16/compiler-rt/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/llvm/16/compiler-rt/default.nix b/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
index fc0d7533c99..e45d1f8660b 100644
--- a/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
+++ b/pkgs/development/compilers/llvm/16/compiler-rt/default.nix
@@ -119,9 +119,9 @@ stdenv.mkDerivation {
   '';
 
   # Hack around weird upsream RPATH bug
-  postInstall = lib.optionalString (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isWasm) ''
+  postInstall = lib.optionalString (stdenv.hostPlatform.isDarwin) ''
     ln -s "$out/lib"/*/* "$out/lib"
-  '' + lib.optionalString (useLLVM) ''
+  '' + lib.optionalString (useLLVM && !stdenv.hostPlatform.isWasm) ''
     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: