Don't test for c++2a on gcc versions that don't support it

pull/4001/head
Zachary Michaels 6 years ago
parent 8417c1a20f
commit 695b325142
  1. 2
      run_unittests.py

@ -3117,6 +3117,8 @@ class LinuxlikeTests(BasePlatformTests):
(version_compare(compiler.version, '<6.0.0') or (version_compare(compiler.version, '<6.0.0') or
(compiler.clang_type == mesonbuild.compilers.CLANG_OSX and version_compare(compiler.version, '<9.2')))): (compiler.clang_type == mesonbuild.compilers.CLANG_OSX and version_compare(compiler.version, '<9.2')))):
continue 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) std_opt = '{}={}'.format(lang_std, v)
self.init(testdir, ['-D' + std_opt]) self.init(testdir, ['-D' + std_opt])
cmd = self.get_compdb()[0]['command'] cmd = self.get_compdb()[0]['command']

Loading…
Cancel
Save