Skip to content

Commit ff96c4c

Browse files
committed
forward only -Ox to source compilation in test runner
1 parent 21bc61d commit ff96c4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/runner.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -10040,7 +10040,9 @@ def setUp(self):
1004010040
Building.LLVM_OPTS = 0
1004110041
if '-O2' in self.emcc_args:
1004210042
Building.COMPILER_TEST_OPTS = [] # remove -g in -O2 tests, for more coverage
10043-
Building.COMPILER_TEST_OPTS += self.emcc_args # so bitcode is optimized too, this is for cpp to ll
10043+
for arg in self.emcc_args:
10044+
if arg.startswith('-O'):
10045+
Building.COMPILER_TEST_OPTS.append(arg) # so bitcode is optimized too, this is for cpp to ll
1004410046
return
1004510047

1004610048
embetter = %d

0 commit comments

Comments
 (0)