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 447
447
( lib . optionalString stdenv . hostPlatform . isGhcjs ''
448
448
export HOME=$(mktemp -d)
449
449
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
450
454
'' ) +
451
455
( lib . optionalString ( ! canCleanSource ) ''
452
456
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 {
435
435
''
436
436
) + ''
437
437
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
438
442
mv config.sub.ghcjs config.sub
439
443
'' )
440
444
# 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