diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-02-02 00:32:48 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-02-02 00:32:48 +0200 |
commit | d779fe7e6ad05ef1a9ba70d3f160c4f87878d997 (patch) | |
tree | b1ad71cc73509f2b3a1b0b4dc5a6310f4637364b /tests | |
parent | ff8c8fd1ba0ab0d49029b09f0c083cf47554da56 (diff) |
In test runner, don't pass -std=c++03 when building .c files.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index c67b4f24..383254aa 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -238,7 +238,10 @@ process(sys.argv[1]) os.remove(f + '.o') except: pass - args = [Building.COMPILER, '-emit-llvm', '-std=c++03'] + COMPILER_OPTS + Building.COMPILER_TEST_OPTS + \ + compiler_flags = ['-emit-llvm'] + if not f.endswith('.c'): + compiler_flags = compiler_flags + ['-std=c++03'] + args = [Building.COMPILER] + compiler_flags + COMPILER_OPTS + Building.COMPILER_TEST_OPTS + \ ['-I', dirname, '-I', os.path.join(dirname, 'include')] + \ map(lambda include: '-I' + include, includes) + \ ['-c', f, '-o', f + '.o'] |