From 695b325142ec84ab7e379abf5ff88df3162bb197 Mon Sep 17 00:00:00 2001 From: Zachary Michaels Date: Thu, 9 Aug 2018 11:50:06 -0700 Subject: Don't test for c++2a on gcc versions that don't support it --- run_unittests.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'run_unittests.py') 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'] -- cgit v1.1