initial commit

This commit is contained in:
2025-03-31 11:36:57 +02:00
commit b37186110d
3 changed files with 37 additions and 0 deletions

10
compile.sh Normal file
View 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