summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-01 11:22:45 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-01 11:22:45 -0800
commitbbd8b2eb841b71c4801e2d0a942550709bb22574 (patch)
tree9cbb74b257103695ef37a6984c8792bad4690678
parentadca39121c270b4e31776ef32733788b73b4ccd1 (diff)
downloadbinaryen-bbd8b2eb841b71c4801e2d0a942550709bb22574.tar.gz
binaryen-bbd8b2eb841b71c4801e2d0a942550709bb22574.tar.bz2
binaryen-bbd8b2eb841b71c4801e2d0a942550709bb22574.zip
rename emcc-to-wasm.js script
-rw-r--r--README.md2
-rwxr-xr-xcheck.py2
-rwxr-xr-xemcc_to_wasm.js.sh (renamed from emcc_to_polyfill.sh)0
3 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index d9e22c216..b51f38a5d 100644
--- a/README.md
+++ b/README.md
@@ -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).
diff --git a/check.py b/check.py
index 4dc8f2cf9..2d7c8a8d6 100755
--- a/check.py
+++ b/check.py
@@ -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