Skip to content

Commit ef8b4d9

Browse files
committed
Fix GHC 9.12 wasm
1 parent 4c2e5f8 commit ef8b4d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/ghc/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,10 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
610610
shift
611611
exec ${buildPackages.nodejs-with-lto}/bin/node \
612612
--disable-warning=ExperimentalWarning \
613-
--max-old-space-size=65536 \
613+
${
614+
if builtins.compareVersions ghc-version "9.13" < 0
615+
then "--experimental-wasm-type-reflection"
616+
else "--max-old-space-size=65536"} \
614617
--no-turbo-fast-api-calls \
615618
--wasm-lazy-validation \
616619
"$SCRIPT" \

0 commit comments

Comments
 (0)