diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-13 17:16:01 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-13 17:16:01 -0700 |
commit | cf04149b2dfa51093c6ad0676171cf7c8c506238 (patch) | |
tree | 22ad147f015e37a41ef8d9b7d17de7ff701ebc3d | |
parent | f41c310f8da01d082e776112a643d6483757999f (diff) | |
download | binaryen-cf04149b2dfa51093c6ad0676171cf7c8c506238.tar.gz binaryen-cf04149b2dfa51093c6ad0676171cf7c8c506238.tar.bz2 binaryen-cf04149b2dfa51093c6ad0676171cf7c8c506238.zip |
test wasm-binary method on wasm.js testcases
-rwxr-xr-x | check.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -656,11 +656,11 @@ if has_emcc: 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']]: - for method in ['asm2wasm', 'wasm-s-parser', 'just-asm']: + for method in ['asm2wasm', 'wasm-s-parser', 'just-asm', 'wasm-binary']: command = ['emcc', '-o', 'a.wasm.js', '-s', 'BINARYEN=1', os.path.join('test', c)] + opts + extra command += ['-s', 'BINARYEN_METHOD="' + method + '"'] - subprocess.check_call(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) print '....' + ' '.join(command) + subprocess.check_call(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if post: open('a.wasm.js', 'a').write(post) else: |