diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-01 11:22:45 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-01 11:22:45 -0800 |
commit | bbd8b2eb841b71c4801e2d0a942550709bb22574 (patch) | |
tree | 9cbb74b257103695ef37a6984c8792bad4690678 | |
parent | adca39121c270b4e31776ef32733788b73b4ccd1 (diff) | |
download | binaryen-bbd8b2eb841b71c4801e2d0a942550709bb22574.tar.gz binaryen-bbd8b2eb841b71c4801e2d0a942550709bb22574.tar.bz2 binaryen-bbd8b2eb841b71c4801e2d0a942550709bb22574.zip |
rename emcc-to-wasm.js script
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | check.py | 2 | ||||
-rwxr-xr-x | emcc_to_wasm.js.sh (renamed from emcc_to_polyfill.sh) | 0 |
3 files changed, 2 insertions, 2 deletions
@@ -57,7 +57,7 @@ Set `ASM2WASM_DEBUG=1` in the env to see debug info, about asm.js functions as t Run ``` -./emcc_to_polyfill.sh [filename.c ; whatever other emcc flags you want] +./emcc_to_wasm.js.sh [filename.c ; whatever other emcc flags you want] ``` That will call `emcc` and then emit `a.normal.js`, a normal asm.js build for comparison purposes, and `a.wasm.js`, which contains the entire polyfill (`asm2wasm` translator + `wasm.js` interpreter). @@ -78,7 +78,7 @@ for c in tests: if os.path.exists(emcc): extra = json.loads(open(emcc).read()) if os.path.exists('a.normal.js'): os.unlink('a.normal.js') - subprocess.check_call(['./emcc_to_polyfill.sh', os.path.join('test', c)] + extra, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + subprocess.check_call(['./emcc_to_wasm.js.sh', os.path.join('test', c)] + extra, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if post: open('a.normal.js', 'a').write(post) open('a.wasm.js', 'a').write(post) diff --git a/emcc_to_polyfill.sh b/emcc_to_wasm.js.sh index ac01b1638..ac01b1638 100755 --- a/emcc_to_polyfill.sh +++ b/emcc_to_wasm.js.sh |