Index: compile |
=================================================================== |
new file mode 100755 |
--- /dev/null |
+++ b/compile |
@@ -0,0 +1,4 @@ |
+#!/bin/sh |
+ |
+. ../emscripten/emsdk_env.sh |
+emcc -Oz -m32 compiled/*.cpp -std=gnu++11 --pre-js compiled/pre.js --post-js compiled/post.js -s DISABLE_EXCEPTION_CATCHING=2 -s ALLOW_MEMORY_GROWTH=1 -s NO_EXIT_RUNTIME=1 -s TOTAL_MEMORY=16777216 -s TOTAL_STACK=1048576 -s ASSERTIONS=2 --memory-init-file 0 -o lib/compiled.js |