| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # TODO (eholk): This script is a hack for debugging and development | 3 # TODO (eholk): This script is a hack for debugging and development |
| 4 # that should be removed. | 4 # that should be removed. |
| 5 | 5 |
| 6 ./wasm-install/bin/emscripten/emcc "$1" -s BINARYEN=1 \ | 6 ./wasm-install/bin/emscripten/emcc "$1" -s BINARYEN=1 \ |
| 7 -s 'BINARYEN_METHOD="native-wasm"' -O2 && \ | 7 -s 'BINARYEN_METHOD="native-wasm"' -O2 \ |
| 8 --em-config wasm-install/emscripten_config_vanilla && \ |
| 8 ./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm && \ | 9 ./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm && \ |
| 9 ./pnacl-sz a.out.wasm -o a.out.o -filetype=obj -O2 && \ | 10 ./pnacl-sz a.out.wasm -o a.out.o -filetype=obj -O2 && \ |
| 10 clang -m32 a.out.o runtime/wasm-runtime.c -g | 11 clang -m32 a.out.o runtime/wasm-runtime.c -g |
| OLD | NEW |