aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2018-08-09 11:50:06 -0700
committerZachary Michaels <mikezackles@gmail.com>2018-08-09 11:50:06 -0700
commit695b325142ec84ab7e379abf5ff88df3162bb197 (patch)
tree443e17e434c5cda8a96b4e4a3d3bd1617e7c911d /run_unittests.py
parent8417c1a20fdd74bf2cc7d15f4bc52460b02d3ce4 (diff)
downloadmeson-695b325142ec84ab7e379abf5ff88df3162bb197.zip
meson-695b325142ec84ab7e379abf5ff88df3162bb197.tar.gz
meson-695b325142ec84ab7e379abf5ff88df3162bb197.tar.bz2
Don't test for c++2a on gcc versions that don't support it
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 8e3da7d..9b3ddb1 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3117,6 +3117,8 @@ class LinuxlikeTests(BasePlatformTests):
(version_compare(compiler.version, '<6.0.0') or
(compiler.clang_type == mesonbuild.compilers.CLANG_OSX and version_compare(compiler.version, '<9.2')))):
continue
+ if (compiler.get_id() == 'gcc' and '2a' in v and version_compare(compiler.version, '<8.0.0')):
+ continue
std_opt = '{}={}'.format(lang_std, v)
self.init(testdir, ['-D' + std_opt])
cmd = self.get_compdb()[0]['command']