@@ -230,11 +230,11 @@ def build(self, src, dirname, filename, output_processor=None, main_file=None, a
230
230
os.remove(f + '.o')
231
231
except:
232
232
pass
233
- args = [PYTHON, EMCC] + Building.COMPILER_TEST_OPTS + \
233
+ args = [PYTHON, EMCC] + Building.COMPILER_TEST_OPTS + Settings.serialize() + \
234
234
['-I', dirname, '-I', os.path.join(dirname, 'include')] + \
235
235
map(lambda include: '-I' + include, includes) + \
236
236
['-c', f, '-o', f + '.o']
237
- output = Popen(args, stdout=PIPE, stderr=self.stderr_redirect).communicate()[0]
237
+ output = Popen(args, stdout=PIPE, stderr=self.stderr_redirect if not DEBUG else None ).communicate()[0]
238
238
assert os.path.exists(f + '.o'), 'Source compilation error: ' + output
239
239
240
240
# Link all files
@@ -10044,9 +10044,10 @@ def setUp(self):
10044
10044
Building.LLVM_OPTS = 0
10045
10045
if '-O2' in self.emcc_args:
10046
10046
Building.COMPILER_TEST_OPTS = [] # remove -g in -O2 tests, for more coverage
10047
- for arg in self.emcc_args:
10048
- if arg.startswith('-O'):
10049
- Building.COMPILER_TEST_OPTS.append(arg) # so bitcode is optimized too, this is for cpp to ll
10047
+ Building.COMPILER_TEST_OPTS += self.emcc_args
10048
+ #for arg in self.emcc_args:
10049
+ # if arg.startswith('-O'):
10050
+ # Building.COMPILER_TEST_OPTS.append(arg) # so bitcode is optimized too, this is for cpp to ll
10050
10051
return
10051
10052
10052
10053
embetter = %d
0 commit comments