summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-01-20 12:46:57 +0000
committerEric Fiselier <eric@efcs.ca>2017-01-20 12:46:57 +0000
commit2f121b664ae761dbd5e3a09d46f38def617a7912 (patch)
tree93562b483bc20fb60590401c057308daaa3db47f /libcxx
parent69cb6ce7fb2a9b5b6f94e18e21368f03fa2f50c5 (diff)
downloadbcm5719-llvm-2f121b664ae761dbd5e3a09d46f38def617a7912.tar.gz
bcm5719-llvm-2f121b664ae761dbd5e3a09d46f38def617a7912.zip
Don't default older GCC's to C++17, but C++14 or C++11 instead
llvm-svn: 292605
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/libcxx/test/config.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/test/config.py b/libcxx/test/libcxx/test/config.py
index 0d90258267a..03d05b44787 100644
--- a/libcxx/test/libcxx/test/config.py
+++ b/libcxx/test/libcxx/test/config.py
@@ -423,6 +423,14 @@ class Configuration(object):
if not std:
# Choose the newest possible language dialect if none is given.
possible_stds = ['c++1z', 'c++14', 'c++11', 'c++03']
+ if self.cxx.type == 'gcc':
+ maj_v, _, _ = self.cxx.version
+ maj_v = int(maj_v)
+ if maj_v < 7:
+ possible_stds.remove('c++1z')
+ # FIXME: How many C++14 tests actually fail under GCC 5 and 6?
+ if maj_v <= 5:
+ possible_stds.remove('c++14')
for s in possible_stds:
if self.cxx.hasCompileFlag('-std=%s' % s):
std = s
OpenPOWER on IntegriCloud