Skip to content

Commit

Permalink
Use temp directory for emscriptem cache
Browse files Browse the repository at this point in the history
As suggested by @doyougnu on alpmestan#169.
  • Loading branch information
chreekat committed Jul 6, 2023
1 parent 160f16b commit 6da50d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ghc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,7 @@ hspkgs.shellFor rec {
lib.optionalString withEMSDK ''
unset CC
CONFIGURE="emconfigure ./configure"
cp -Lr ${emscripten}/share/emscripten/cache .emscripten_cache
chmod u+rwX -R .emscripten_cache
export EM_CACHE=.emscripten_cache
export EM_CACHE=$(mktemp -d)
>&2 echo "N.B. You will need to invoke Hadrian with --bignum=native"
>&2 echo ""
''}
Expand Down

0 comments on commit 6da50d2

Please sign in to comment.