llvmPackages_16.compiler-rt: fix wasi32 build

+2 -2
+2 -2
pkgs/development/compilers/llvm/16/compiler-rt/default.nix
··· 119 119 ''; 120 120 121 121 # Hack around weird upsream RPATH bug 122 - postInstall = lib.optionalString (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isWasm) '' 122 + postInstall = lib.optionalString (stdenv.hostPlatform.isDarwin) '' 123 123 ln -s "$out/lib"/*/* "$out/lib" 124 - '' + lib.optionalString (useLLVM) '' 124 + '' + lib.optionalString (useLLVM && !stdenv.hostPlatform.isWasm) '' 125 125 ln -s $out/lib/*/clang_rt.crtbegin-*.o $out/lib/crtbegin.o 126 126 ln -s $out/lib/*/clang_rt.crtend-*.o $out/lib/crtend.o 127 127 # Note the history of crt{begin,end}S in previous versions of llvm in nixpkg: