MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

improve wasm demo script

+10 -3
+10 -3
examples/wasm/demo.sh
··· 1 - emcc -O3 hello.c -o hello.cjs 2 - ant hello.cjs 3 - rm hello.cjs hello.wasm 1 + #!/usr/bin/env bash 2 + set -euo pipefail 3 + 4 + SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 5 + SRC="${SCRIPT_DIR}/hello.c" 6 + BASE="${SRC%.c}" 7 + 8 + emcc -O3 "$SRC" -o "${BASE}.cjs" 9 + ant "${BASE}.cjs" 10 + rm -f "${BASE}.cjs" "${BASE}.wasm"