clay/renderers/web/build-wasm.sh
2024-08-23 16:11:56 +12:00

13 lines
300 B
Bash
Executable File

cp ../../clay.h clay.c && \
clang \
-Os \
-DCLAY_WASM \
-mbulk-memory \
--target=wasm32 \
-nostdlib \
-Wl,--strip-all \
-Wl,--export-dynamic \
-Wl,--no-entry \
-Wl,--export=__heap_base \
-Wl,--initial-memory=6553600 \
-o clay.wasm clay.c; rm clay.c;