From 9cd313ee58ce2c5d34d6ca96ef700463876c8729 Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Thu, 16 Mar 2023 23:14:06 +1300 Subject: [PATCH] Set EM_CACHE for emscripten --- compiler/ghc/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/ghc/default.nix b/compiler/ghc/default.nix index 7ebbaf8448..7167f10e03 100644 --- a/compiler/ghc/default.nix +++ b/compiler/ghc/default.nix @@ -296,6 +296,7 @@ stdenv.mkDerivation (rec { export CC="${targetCC}/bin/emcc" export CXX="${targetCC}/bin/em++" export LD="${targetCC}/bin/emcc" + export EM_CACHE=$(mktemp -d) '' # GHC is a bit confused on its cross terminology, as these would normally be # the *host* tools.