diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-19 11:48:01 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-19 11:48:01 -0700 |
commit | ba7a643dcb47b572d7509753e7c3a84625e5ca54 (patch) | |
tree | 7716f4c433b4aff02364684ce7daf456a6f52b33 | |
parent | 2e49ab9e7cad988adfc0f3c57185ceefa8dcad6d (diff) |
fix test_asm_pgo
-rwxr-xr-x | tests/runner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index d754e056..59b1647f 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -8072,11 +8072,13 @@ def process(filename): self.do_run(src, output) shutil.move(self.in_dir('src.cpp.o.js'), self.in_dir('normal.js')) - self.emcc_args = map(lambda x: 'ASM_JS=0' if x == 'ASM_JS=1' else x, self.emcc_args) + self.emcc_args.append('-s') + self.emcc_args.append('ASM_JS=0') Settings.PGO = 1 self.do_run(src, output) Settings.PGO = 0 - self.emcc_args = map(lambda x: 'ASM_JS=1' if x == 'ASM_JS=0' else x, self.emcc_args) + self.emcc_args.append('-s') + self.emcc_args.append('ASM_JS=1') shutil.move(self.in_dir('src.cpp.o.js'), self.in_dir('pgo.js')) pgo_output = run_js(self.in_dir('pgo.js')).split('\n')[1] |