Skip to content

Commit

Permalink
Apply -H64m to GHCRTS
Browse files Browse the repository at this point in the history
  • Loading branch information
TerrorJack committed Nov 16, 2024
1 parent 1d701bc commit f50c11e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ hs_wasm_path=$(find .. -name "*.wasm")
if $dev_mode; then
cp "$hs_wasm_path" dist/bin.wasm
else
wizer --allow-wasi --wasm-bulk-memory true --init-func _initialize -o dist/bin.wasm "$hs_wasm_path"
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"
wasm-opt ${1+"$@"} dist/bin.wasm -o dist/bin.wasm
wasm-tools strip -o dist/bin.wasm dist/bin.wasm
fi
Expand Down
2 changes: 1 addition & 1 deletion frontend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { WASI, OpenFile, File, ConsoleStdout } from "https://cdn.jsdelivr.net/np
import ghc_wasm_jsffi from "./ghc_wasm_jsffi.js";

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

0 comments on commit f50c11e

Please sign in to comment.