blob: eeec0a5eb08da95dd4351654069c0079ec88c116 [file] [log] [blame]
Eric Holk67c7c412016-04-15 13:05:37 -07001#!/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 Holk29acb572016-04-22 09:34:41 -07007 -s 'BINARYEN_METHOD="native-wasm"' \
Eric Holk87def2c2016-04-29 14:42:17 -07008 --em-config wasm-install/emscripten_config_vanilla -O2 && \
Eric Holk67c7c412016-04-15 13:05:37 -07009./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 Holk29acb572016-04-22 09:34:41 -070011clang -m32 a.out.o ./runtime/szrt.c \
Eric Holk87def2c2016-04-29 14:42:17 -070012 ./runtime/wasm-runtime.cpp -lm -g -lstdc++