Files
cplusplus.js/embuild

15 lines
425 B
Plaintext
Raw Normal View History

2020-05-06 00:52:12 -05:00
#!/bin/bash
2021-02-18 10:38:21 -06:00
source /home/garrettmills/.clone/emsdk/emsdk_env.sh
2020-05-06 00:52:12 -05:00
emcc main.cpp --std=c++14 \
--shell-file shell_minimal.html \
--emrun \
-o hello.html \
-s NO_EXIT_RUNTIME=1 \
2021-02-18 10:38:21 -06:00
-s EXPORTED_FUNCTIONS="['_main', '_str_pass_size', '_fire_event_bus']" \
2020-05-06 00:52:12 -05:00
-s EXTRA_EXPORTED_RUNTIME_METHODS="['cwrap', 'ccall', 'stringToUTF8', 'setValue', 'getValue', 'UTF8ToString']" \
-s WASM=1 \
-s DISABLE_EXCEPTION_CATCHING=0 \
--bind