Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 4340477

Browse files
committed
Apply -H64m to GHCRTS
1 parent 085374e commit 4340477

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ hs_wasm_path=$(find .. -name "*.wasm")
3737
if $dev_mode; then
3838
cp "$hs_wasm_path" dist/bin.wasm
3939
else
40-
wizer --allow-wasi --wasm-bulk-memory true --init-func _initialize -o dist/bin.wasm "$hs_wasm_path"
40+
env -i GHCRTS=-H64m "$(type -P wizer)" --allow-wasi --wasm-bulk-memory true --inherit-env true --init-func _initialize -o dist/bin.wasm "$hs_wasm_path"
4141
wasm-opt ${1+"$@"} dist/bin.wasm -o dist/bin.wasm
4242
wasm-tools strip -o dist/bin.wasm dist/bin.wasm
4343
fi

frontend/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { WASI, OpenFile, File, ConsoleStdout } from "https://cdn.jsdelivr.net/np
22
import ghc_wasm_jsffi from "./ghc_wasm_jsffi.js";
33

44
const args = [];
5-
const env = [];
5+
const env = ["GHCRTS=-H64m"];
66
const fds = [
77
new OpenFile(new File([])), // stdin
88
ConsoleStdout.lineBuffered((msg) => console.log(`[WASI stdout] ${msg}`)),

0 commit comments

Comments
 (0)