diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-27 15:08:50 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-27 15:08:50 -0700 |
commit | ff96c4c0b6404a48c71658cc8de9689272bc42fd (patch) | |
tree | b04872493753ad4d054034c0ea938459a99b2d5e /tests | |
parent | 21bc61d8076a284cad84c8abc4bb90172b3317e9 (diff) |
forward only -Ox to source compilation in test runner
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index a6456055..d73be48b 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10040,7 +10040,9 @@ class %s(T): Building.LLVM_OPTS = 0 if '-O2' in self.emcc_args: Building.COMPILER_TEST_OPTS = [] # remove -g in -O2 tests, for more coverage - Building.COMPILER_TEST_OPTS += self.emcc_args # so bitcode is optimized too, this is for cpp to ll + for arg in self.emcc_args: + if arg.startswith('-O'): + Building.COMPILER_TEST_OPTS.append(arg) # so bitcode is optimized too, this is for cpp to ll return embetter = %d |