Index: compile |
=================================================================== |
new file mode 100755 |
--- /dev/null |
+++ b/compile |
@@ -0,0 +1,4 @@ |
+#!/bin/sh |
+ |
+. ../emscripten/emsdk_env.sh |
+emcc -Oz -m32 -std=gnu++11 compiled/*.cpp -s SHELL_FILE=\'`pwd`/compiled/shell.js\' -s ALLOW_MEMORY_GROWTH=1 -s NO_EXIT_RUNTIME=1 -s TOTAL_MEMORY=16777216 -s TOTAL_STACK=1048576 -s ASSERTIONS=2 -s NO_BROWSER=1 -s NO_FILESYSTEM=1 -s INVOKE_RUN=0 -s NODE_STDOUT_FLUSH_WORKAROUND=0 -s NO_DYNAMIC_EXECUTION=1 -s DISABLE_EXCEPTION_CATCHING=0 --memory-init-file 0 -o lib/compiled.js |