aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-02-02 00:32:48 +0200
committerJukka Jylänki <jujjyl@gmail.com>2013-02-02 00:32:48 +0200
commitd779fe7e6ad05ef1a9ba70d3f160c4f87878d997 (patch)
treeb1ad71cc73509f2b3a1b0b4dc5a6310f4637364b /tests
parentff8c8fd1ba0ab0d49029b09f0c083cf47554da56 (diff)
In test runner, don't pass -std=c++03 when building .c files.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py5
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']