summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-12-03 03:29:45 +0000
committerEric Fiselier <eric@efcs.ca>2016-12-03 03:29:45 +0000
commit0c6d89d61434dc6b44ccd7fb7be5fabbb60af45d (patch)
tree167ac891893c01a378fe6114692ee0d4dbbe3662 /libcxx/test
parent613dc646d3f4cc262a2db098da6f94f9d416142b (diff)
downloadbcm5719-llvm-0c6d89d61434dc6b44ccd7fb7be5fabbb60af45d.tar.gz
bcm5719-llvm-0c6d89d61434dc6b44ccd7fb7be5fabbb60af45d.zip
Turn off testsuite warnings by default with GCC
llvm-svn: 288576
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/libcxx/test/config.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/libcxx/test/config.py b/libcxx/test/libcxx/test/config.py
index df998717cd8..6b2bf7f3a1d 100644
--- a/libcxx/test/libcxx/test/config.py
+++ b/libcxx/test/libcxx/test/config.py
@@ -634,8 +634,9 @@ class Configuration(object):
self.cxx.compile_flags += ['-D_LIBCPP_DEBUG=%s' % debug_level]
def configure_warnings(self):
- default_enable_warnings = len(
- self.config.available_features.intersection(
+ # 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++1z'])) != 0
enable_warnings = self.get_lit_bool('enable_warnings',
default_enable_warnings)
OpenPOWER on IntegriCloud