diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-29 21:52:52 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-29 21:52:52 -0800 |
commit | 22ad6ab514be34b586aea7ada24f3c3917e83ccc (patch) | |
tree | 44c4a8be29ad72b272d94b1ee7a45c03b6b1a771 /check.py | |
parent | 587b3b9573c503c32ea09bb702d894a33217798d (diff) | |
download | binaryen-22ad6ab514be34b586aea7ada24f3c3917e83ccc.tar.gz binaryen-22ad6ab514be34b586aea7ada24f3c3917e83ccc.tar.bz2 binaryen-22ad6ab514be34b586aea7ada24f3c3917e83ccc.zip |
more just-asm checking
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -208,10 +208,9 @@ 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']]: - for method in [None, 'asm2wasm', 'wasm-s-parser']: + for method in ['asm2wasm', 'wasm-s-parser', 'just-asm']: command = ['emcc', '-o', 'a.wasm.js', '-s', 'BINARYEN="' + os.getcwd() + '"', os.path.join('test', c)] + opts + extra - if method: - command += ['-s', 'BINARYEN_METHOD="' + method + '"'] + command += ['-s', 'BINARYEN_METHOD="' + method + '"'] subprocess.check_call(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) print '....' + ' '.join(command) if post: |