diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-16 14:35:58 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-16 14:35:58 -0800 |
commit | 4aee30b209d5394f539af0000eb24064af11fa0c (patch) | |
tree | ec0c4cb05ee151e3e5d460e91ee3e51962a4472b /check.py | |
parent | ee74df535b0c9757642410957ac478085f6ba6ae (diff) | |
download | binaryen-4aee30b209d5394f539af0000eb24064af11fa0c.tar.gz binaryen-4aee30b209d5394f539af0000eb24064af11fa0c.tar.bz2 binaryen-4aee30b209d5394f539af0000eb24064af11fa0c.zip |
use the new BINARYEN option in emscripten
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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()) |