initial commit
This commit is contained in:
10
compile.sh
Normal file
10
compile.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
scriptSrc=$1
|
||||
scriptWasm=${scriptSrc%.c}.wasm
|
||||
|
||||
echo "Compiling $scriptSrc -> $scriptWasm"
|
||||
emcc --no-entry -O3 -s ERROR_ON_UNDEFINED_SYMBOLS=0 $scriptSrc -o $scriptWasm
|
||||
|
||||
echo "Stubbing $scriptWasm"
|
||||
wasi-stub $scriptWasm -o $scriptWasm
|
||||
Reference in New Issue
Block a user