[libcxx] r288576 - Turn off testsuite warnings by default with GCC
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 2 19:29:46 PST 2016
Author: ericwf
Date: Fri Dec 2 21:29:45 2016
New Revision: 288576
URL: http://llvm.org/viewvc/llvm-project?rev=288576&view=rev
Log:
Turn off testsuite warnings by default with GCC
Modified:
libcxx/trunk/test/libcxx/test/config.py
Modified: libcxx/trunk/test/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/test/config.py?rev=288576&r1=288575&r2=288576&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/test/config.py (original)
+++ libcxx/trunk/test/libcxx/test/config.py Fri Dec 2 21:29:45 2016
@@ -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)
More information about the cfe-commits
mailing list