From 3268110e849db8014615d2cdc1ef12d38c868b56 Mon Sep 17 00:00:00 2001 From: Bryan Richter Date: Thu, 6 Jul 2023 12:02:47 +0300 Subject: [PATCH] Use temp directory for emscriptem cache As suggested by @doyougnu on #169. --- ghc.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ghc.nix b/ghc.nix index 6da2916..0de0108 100644 --- a/ghc.nix +++ b/ghc.nix @@ -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 "" ''}