diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-31 15:54:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-31 15:54:11 -0700 |
commit | a8963f481e5db2c212a7e7fa83d3599c65d7ef5f (patch) | |
tree | 2fb72730f1944e4749e179aeaa7bcd6fdb404e73 | |
parent | 6512f29a40c72979c05e73318b957e425363980e (diff) | |
download | binaryen-a8963f481e5db2c212a7e7fa83d3599c65d7ef5f.tar.gz binaryen-a8963f481e5db2c212a7e7fa83d3599c65d7ef5f.tar.bz2 binaryen-a8963f481e5db2c212a7e7fa83d3599c65d7ef5f.zip |
make emcc_to_polyfill emit a.wasm.js
-rwxr-xr-x | emcc_to_polyfill.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/emcc_to_polyfill.sh b/emcc_to_polyfill.sh index c808e7ae8..1daaabb5b 100755 --- a/emcc_to_polyfill.sh +++ b/emcc_to_polyfill.sh @@ -1,8 +1,18 @@ #!/bin/sh + +echo "calling emcc" 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 + +# we now have a.asm.js and a.js + +echo 'constructing 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 +echo 'constructing a.wasm.js' # use wasm polyfill in place of asm.js THIS IS NOT A DRILL +cp a.asm.js a.asm.code.js +cat src/templates/wasm.js > a.wasm.js +cat bin/wasm.js >> a.wasm.js +cat a.js >> a.wasm.js + |