aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2018-08-09 10:04:57 -0700
committerZachary Michaels <mikezackles@gmail.com>2018-08-09 11:09:21 -0700
commit8417c1a20fdd74bf2cc7d15f4bc52460b02d3ce4 (patch)
tree4c4c4a5ed3bba8faea6ea3f17bb4797b15615a52 /run_unittests.py
parent15fb2843955b53414cf292cf0a6b7faf7ffc883a (diff)
downloadmeson-8417c1a20fdd74bf2cc7d15f4bc52460b02d3ce4.zip
meson-8417c1a20fdd74bf2cc7d15f4bc52460b02d3ce4.tar.gz
meson-8417c1a20fdd74bf2cc7d15f4bc52460b02d3ce4.tar.bz2
Add support for c++2a and gnu++2a
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index e0f2fe5..8e3da7d 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -3113,6 +3113,10 @@ class LinuxlikeTests(BasePlatformTests):
(version_compare(compiler.version, '<5.0.0') or
(compiler.clang_type == mesonbuild.compilers.CLANG_OSX and version_compare(compiler.version, '<9.2')))):
continue
+ if (compiler.get_id() == 'clang' and '2a' in v and
+ (version_compare(compiler.version, '<6.0.0') or
+ (compiler.clang_type == mesonbuild.compilers.CLANG_OSX and version_compare(compiler.version, '<9.2')))):
+ continue
std_opt = '{}={}'.format(lang_std, v)
self.init(testdir, ['-D' + std_opt])
cmd = self.get_compdb()[0]['command']