blob: f7029881c5fe54b5813fe5b84f5a246d742747c9 [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 Holk085bdae2016-04-18 15:08:19 -07007 -s 'BINARYEN_METHOD="native-wasm"' -O2 \
8 --em-config wasm-install/emscripten_config_vanilla && \
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 && \
11clang -m32 a.out.o runtime/wasm-runtime.c -g