about summary refs log tree commit diff
path: root/pkgs/development/compilers/llvm
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2019-04-16 23:55:31 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-04-23 21:48:58 -0400
commit1a7a96a093c8c3ee25ab18e36473394e1e2a5b0a (patch)
tree4ca4737bff457205acabd3ec7d3d1084a64d8a1d /pkgs/development/compilers/llvm
parent4048acb5cf533d35f25221af200fc40d07f25a63 (diff)
downloadnixlib-1a7a96a093c8c3ee25ab18e36473394e1e2a5b0a.tar
nixlib-1a7a96a093c8c3ee25ab18e36473394e1e2a5b0a.tar.gz
nixlib-1a7a96a093c8c3ee25ab18e36473394e1e2a5b0a.tar.bz2
nixlib-1a7a96a093c8c3ee25ab18e36473394e1e2a5b0a.tar.lz
nixlib-1a7a96a093c8c3ee25ab18e36473394e1e2a5b0a.tar.xz
nixlib-1a7a96a093c8c3ee25ab18e36473394e1e2a5b0a.tar.zst
nixlib-1a7a96a093c8c3ee25ab18e36473394e1e2a5b0a.zip
stdenv, compiler-rt: Compress WASI conditionals
Diffstat (limited to 'pkgs/development/compilers/llvm')
-rw-r--r--pkgs/development/compilers/llvm/8/compiler-rt.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/compilers/llvm/8/compiler-rt.nix b/pkgs/development/compilers/llvm/8/compiler-rt.nix
index 3e225626aa6d..33eef4358256 100644
--- a/pkgs/development/compilers/llvm/8/compiler-rt.nix
+++ b/pkgs/development/compilers/llvm/8/compiler-rt.nix
@@ -53,15 +53,13 @@ stdenv.mkDerivation rec {
   '';
 
   # Hack around weird upsream RPATH bug
-  postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
+  postInstall = stdenv.lib.optionalString (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isWasm) ''
     ln -s "$out/lib"/*/* "$out/lib"
   '' + stdenv.lib.optionalString (stdenv.hostPlatform.useLLVM or false) ''
     ln -s $out/lib/*/clang_rt.crtbegin-*.o $out/lib/crtbegin.o
     ln -s $out/lib/*/clang_rt.crtend-*.o $out/lib/crtend.o
     ln -s $out/lib/*/clang_rt.crtbegin_shared-*.o $out/lib/crtbeginS.o
     ln -s $out/lib/*/clang_rt.crtend_shared-*.o $out/lib/crtendS.o
-  '' + stdenv.lib.optionalString stdenv.hostPlatform.isWasm ''
-    ln -s $out/lib/*/* $out/lib
   '';
 
   NIX_LDFLAGS = stdenv.lib.optionalString stdenv.hostPlatform.isWasm "--allow-undefined --no-entry";