diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-11-07 20:26:23 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-11-07 20:26:23 +0000 |
commit | 537309342d7d9bb7e8dbd2f89a2e1489cacbf251 (patch) | |
tree | 9a42c46eda59b4b279468eeae3b98ae8225ea36d /libcxx/utils | |
parent | 515e9dbfef2ba810328a3b3556840b9df80db2c6 (diff) | |
download | bcm5719-llvm-537309342d7d9bb7e8dbd2f89a2e1489cacbf251.tar.gz bcm5719-llvm-537309342d7d9bb7e8dbd2f89a2e1489cacbf251.zip |
Teach test suite about C++2a dialect flag.
This patch teaches the test suite configuration about the -std=c++2a
flag. And, since it's the newest dialect, change the test suite to
choose it, if possible, by default.
llvm-svn: 317611
Diffstat (limited to 'libcxx/utils')
-rw-r--r-- | libcxx/utils/libcxx/test/config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py index 0d907d7f59a..4ed67c2238f 100644 --- a/libcxx/utils/libcxx/test/config.py +++ b/libcxx/utils/libcxx/test/config.py @@ -517,7 +517,8 @@ class Configuration(object): std = self.get_lit_conf('std') if not std: # Choose the newest possible language dialect if none is given. - possible_stds = ['c++17', 'c++1z', 'c++14', 'c++11', 'c++03'] + possible_stds = ['c++2a', 'c++17', 'c++1z', 'c++14', 'c++11', + 'c++03'] if self.cxx.type == 'gcc': maj_v, _, _ = self.cxx.version maj_v = int(maj_v) @@ -888,7 +889,7 @@ class Configuration(object): # Turn on warnings by default for Clang based compilers when C++ >= 11 default_enable_warnings = self.cxx.type in ['clang', 'apple-clang'] \ and len(self.config.available_features.intersection( - ['c++11', 'c++14', 'c++17'])) != 0 + ['c++11', 'c++14', 'c++17', 'c++2a'])) != 0 enable_warnings = self.get_lit_bool('enable_warnings', default_enable_warnings) self.cxx.useWarnings(enable_warnings) |