diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-06 14:31:22 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-06 07:49:55 -0500 |
commit | b9b79ef012500360c33ebc0c24dc7b3d30dde8bf (patch) | |
tree | 387c57a933ac0c07e881bb1db566b5ac1ccfe903 /run_unittests.py | |
parent | bc83c58d37421b84c5420356a79e04ade2b851a7 (diff) | |
download | meson-c++17.tar.gz |
Add C++17 flags to GCC and Clang.c++17
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py index 0002f6cfd..5687184dd 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -35,7 +35,7 @@ import mesonbuild.mesonlib import mesonbuild.coredata from mesonbuild.interpreter import ObjectHolder from mesonbuild.mesonlib import is_linux, is_windows, is_osx, is_cygwin, windows_proof_rmtree -from mesonbuild.mesonlib import python_command, meson_command +from mesonbuild.mesonlib import python_command, meson_command, version_compare from mesonbuild.environment import Environment from mesonbuild.dependencies import DependencyException from mesonbuild.dependencies import PkgConfigDependency, ExternalProgram @@ -2046,6 +2046,8 @@ class LinuxlikeTests(BasePlatformTests): # Check that all the listed -std=xxx options for this compiler work # just fine when used for v in compiler.get_options()[lang_std].choices: + if compiler.get_id() == 'clang' and version_compare(compiler.version, '<5.0.0') and '17' in v: + continue std_opt = '{}={}'.format(lang_std, v) self.init(testdir, ['-D' + std_opt]) cmd = self.get_compdb()[0]['command'] |