Eric Holk | 67c7c41 | 2016-04-15 13:05:37 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # TODO (eholk): This script is a hack for debugging and development |
| 4 | # that should be removed. |
| 5 | |
| 6 | ./wasm-install/bin/emscripten/emcc "$1" -s BINARYEN=1 \ |
Eric Holk | 29acb57 | 2016-04-22 09:34:41 -0700 | [diff] [blame] | 7 | -s 'BINARYEN_METHOD="native-wasm"' \ |
Eric Holk | 87def2c | 2016-04-29 14:42:17 -0700 | [diff] [blame] | 8 | --em-config wasm-install/emscripten_config_vanilla -O2 && \ |
Eric Holk | 67c7c41 | 2016-04-15 13:05:37 -0700 | [diff] [blame] | 9 | ./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm && \ |
| 10 | ./pnacl-sz a.out.wasm -o a.out.o -filetype=obj -O2 && \ |
Eric Holk | 29acb57 | 2016-04-22 09:34:41 -0700 | [diff] [blame] | 11 | clang -m32 a.out.o ./runtime/szrt.c \ |
Eric Holk | 87def2c | 2016-04-29 14:42:17 -0700 | [diff] [blame] | 12 | ./runtime/wasm-runtime.cpp -lm -g -lstdc++ |