diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-31 15:48:08 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-31 15:48:08 -0700 |
commit | 6512f29a40c72979c05e73318b957e425363980e (patch) | |
tree | 7d4127f6d1f61b7de799b4e3ff08f214ed554e1c /emcc_to_polyfill.sh | |
parent | 547867eb0e78cac6be7f35bbd80c6582224df807 (diff) | |
download | binaryen-6512f29a40c72979c05e73318b957e425363980e.tar.gz binaryen-6512f29a40c72979c05e73318b957e425363980e.tar.bz2 binaryen-6512f29a40c72979c05e73318b957e425363980e.zip |
prepare for polyfill testing
Diffstat (limited to 'emcc_to_polyfill.sh')
-rwxr-xr-x | emcc_to_polyfill.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/emcc_to_polyfill.sh b/emcc_to_polyfill.sh new file mode 100755 index 000000000..c808e7ae8 --- /dev/null +++ b/emcc_to_polyfill.sh @@ -0,0 +1,8 @@ +#!/bin/sh +emcc $1 -o a.html --separate-asm +# we now have a.asm.js and a.js, combine them +# a.normal.js: just normal combination of the files. no wasm yet +cat src/templates/normal.js > a.normal.js +cat a.asm.js >> a.normal.js +cat a.js >> a.normal.js + |