File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 447447 ( lib . optionalString stdenv . hostPlatform . isGhcjs ''
448448 export HOME=$(mktemp -d)
449449 export EM_CACHE=$(mktemp -d)
450+ if [ -d ${ pkgsBuildBuild . emscripten } /share/emscripten/cache ]; then
451+ cp -r ${ pkgsBuildBuild . emscripten } /share/emscripten/cache/* $EM_CACHE/
452+ chmod +w -R $EM_CACHE
453+ fi
450454 '' ) +
451455 ( lib . optionalString ( ! canCleanSource ) ''
452456 echo "Cleaning component source not supported, leaving it un-cleaned"
Original file line number Diff line number Diff line change @@ -435,6 +435,10 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
435435 ''
436436 ) + ''
437437 export EM_CACHE=$(mktemp -d)
438+ if [ -d ${ targetCC } /share/emscripten/cache ]; then
439+ cp -r ${ targetCC } /share/emscripten/cache/* $EM_CACHE/
440+ chmod +w -R $EM_CACHE
441+ fi
438442 mv config.sub.ghcjs config.sub
439443 '' )
440444 # GHC is a bit confused on its cross terminology, as these would normally be
You can’t perform that action at this time.
0 commit comments