summaryrefslogtreecommitdiff
path: root/check.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-16 14:35:58 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-16 14:35:58 -0800
commit4aee30b209d5394f539af0000eb24064af11fa0c (patch)
treeec0c4cb05ee151e3e5d460e91ee3e51962a4472b /check.py
parentee74df535b0c9757642410957ac478085f6ba6ae (diff)
downloadbinaryen-4aee30b209d5394f539af0000eb24064af11fa0c.tar.gz
binaryen-4aee30b209d5394f539af0000eb24064af11fa0c.tar.bz2
binaryen-4aee30b209d5394f539af0000eb24064af11fa0c.zip
use the new BINARYEN option in emscripten
Diffstat (limited to 'check.py')
-rwxr-xr-xcheck.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/check.py b/check.py
index fcdf2ab3c..7f0ebd5f5 100755
--- a/check.py
+++ b/check.py
@@ -159,15 +159,14 @@ for c in tests:
extra = json.loads(open(emcc).read())
if os.path.exists('a.normal.js'): os.unlink('a.normal.js')
for opts in [[], ['-O1'], ['-O2'], ['-O3'], ['-Oz']]:
- command = ['./emcc_to_wasm.js.sh', os.path.join('test', c)] + opts + extra
+ command = ['emcc', '-o', 'a.wasm.js', '-s', 'BINARYEN="' + os.getcwd() + '"', os.path.join('test', c)] + opts + extra
subprocess.check_call(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print '....' + ' '.join(command)
if post:
- open('a.normal.js', 'a').write(post)
open('a.wasm.js', 'a').write(post)
else:
print ' (no post)'
- for which in ['normal', 'wasm']:
+ for which in ['wasm']:
print '......', which
try:
args = json.loads(open(os.path.join('test', base + '.args')).read())