clay/renderers/web/build-wasm.sh

13 lines
300 B
Bash
Raw Normal View History

2024-08-23 04:05:23 +00:00
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;