diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-27 16:35:26 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-27 16:35:26 -0700 |
commit | 4cdbf3455529efd2475cd7443922857602cb3e8c (patch) | |
tree | 821054c727c4420834c9b891d1ea144322e7147c | |
parent | 46d3849df6a76f8c5b041172dc9fa2cc8a28be6f (diff) |
fix argument passing to emcc on src-to-bitcode in test runner
-rwxr-xr-x | tests/runner.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/runner.py b/tests/runner.py index 58176e45..5856311a 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -230,11 +230,11 @@ process(sys.argv[1]) os.remove(f + '.o') except: pass - args = [PYTHON, EMCC] + Building.COMPILER_TEST_OPTS + \ + args = [PYTHON, EMCC] + Building.COMPILER_TEST_OPTS + Settings.serialize() + \ ['-I', dirname, '-I', os.path.join(dirname, 'include')] + \ map(lambda include: '-I' + include, includes) + \ ['-c', f, '-o', f + '.o'] - output = Popen(args, stdout=PIPE, stderr=self.stderr_redirect).communicate()[0] + output = Popen(args, stdout=PIPE, stderr=self.stderr_redirect if not DEBUG else None).communicate()[0] assert os.path.exists(f + '.o'), 'Source compilation error: ' + output # Link all files @@ -10044,9 +10044,10 @@ 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 - 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 + Building.COMPILER_TEST_OPTS += self.emcc_args + #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 |