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 \
7  -s 'BINARYEN_METHOD="native-wasm"' \
8  --em-config wasm-install/emscripten_config_vanilla -O2 && \
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 && \
11clang -m32 a.out.o ./runtime/szrt.c \
12  ./runtime/wasm-runtime.cpp -lm -g -lstdc++
13