Skip to content

Commit aab4251

Browse files
committed
Fix wasm-reactor build
1 parent b0144de commit aab4251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wasm_reactor/build-wasm.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# TODO: Make sure this script is always run from wasm_reactor directory
3-
wasm32-wasi-cabal build exe:indigo-wasm-reactor --allow-newer='*' -f noffi
4-
INDIGO_WASM=$(realpath ./dist-newstyle/build/wasm32-wasi/ghc-*/indigo-wasm-reactor-*/x/indigo-wasm-reactor/build/indigo-wasm-reactor/indigo-wasm-reactor.wasm)
3+
wasm32-wasi-cabal build exe:indigo-wasm-reactor --allow-newer='base' -f noffi
4+
INDIGO_WASM=$(wasm32-wasi-cabal list-bin indigo-wasm-reactor --allow-newer=base | tail -n 1)
55
wizer --allow-wasi --wasm-bulk-memory true "$INDIGO_WASM" -o indigo-init.wasm
66
cp -f indigo-init.wasm ../../indigo-fiddle
77
cp -rf ../share ../../indigo-fiddle/indigo-lib

0 commit comments

Comments
 (0)