Skip to content

Commit 18440f3

Browse files
haskell.compiler.ghcjs810: set up EM_CACHE for emcc
The compiler function test now causes emcc to try and lock its cache (which is located in the nix store unless we set EM_CACHE). Resolves #376582.
1 parent c6247d0 commit 18440f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkgs/development/compilers/ghcjs/8.10/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ stdenv.mkDerivation {
105105
touch $HOME/.cabal/config
106106
cd lib/boot
107107
108+
export EM_CACHE="$HOME/.emscriptencache"
109+
mkdir -p "$EM_CACHE"
110+
108111
mkdir -p $out/bin
109112
mkdir -p $out/lib/${bootGhcjs.name}
110113
lndir ${bootGhcjs}/bin $out/bin

0 commit comments

Comments
 (0)