more wasm
This commit is contained in:
parent
9d67af9901
commit
9ac87f93e9
5 changed files with 72 additions and 0 deletions
13
Makefile
Normal file
13
Makefile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
all: out/numbersquare.wasm out/ghc_wasm_jsffi.js
|
||||
|
||||
out/numbersquare.wasm: app/* src/* numbersquare.cabal
|
||||
wasm32-wasi-cabal build
|
||||
wasm32-wasi-cabal install --installdir=out --overwrite-policy=always
|
||||
|
||||
out/ghc_wasm_jsffi.js: out/numbersquare.wasm
|
||||
$(shell wasm32-wasi-ghc --print-libdir)/post-link.mjs -i out/numbersquare.wasm -o out/ghc_wasm_jsffi.js
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf dist-newstyle out/numbersquare.wasm out/ghc_wasm_jsffi.js
|
||||
Loading…
Add table
Add a link
Reference in a new issue