Commit 18440f37 authored by sternenseemann's avatar sternenseemann
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.
parent c6247d05
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -105,6 +105,9 @@ stdenv.mkDerivation {
    touch $HOME/.cabal/config
    cd lib/boot

    export EM_CACHE="$HOME/.emscriptencache"
    mkdir -p "$EM_CACHE"

    mkdir -p $out/bin
    mkdir -p $out/lib/${bootGhcjs.name}
    lndir ${bootGhcjs}/bin $out/bin