[libcxx-commits] [libcxx] cc78f1e - [libc++] Avoid warning for large types with std::atomic in the test suite

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 4 11:06:28 PDT 2020


Author: Louis Dionne
Date: 2020-06-04T14:06:04-04:00
New Revision: cc78f1e0feee7505f9c1ef6b2c4c307267466e4a

URL: https://github.com/llvm/llvm-project/commit/cc78f1e0feee7505f9c1ef6b2c4c307267466e4a
DIFF: https://github.com/llvm/llvm-project/commit/cc78f1e0feee7505f9c1ef6b2c4c307267466e4a.diff

LOG: [libc++] Avoid warning for large types with std::atomic in the test suite

It is legitimate for the test suite to use types that are slow to use
with std::atomic, since we need coverage for those too. If we don't
disable the warning, it is promoted to an error, which prevents us
from testing such types.

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/config.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index 995d0e108f29..be8ee3be6129 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -636,6 +636,7 @@ def configure_warnings(self):
         self.cxx.addWarningFlagIfSupported('-Wno-user-defined-literals')
         self.cxx.addWarningFlagIfSupported('-Wno-noexcept-type')
         self.cxx.addWarningFlagIfSupported('-Wno-aligned-allocation-unavailable')
+        self.cxx.addWarningFlagIfSupported('-Wno-atomic-alignment')
         # These warnings should be enabled in order to support the MSVC
         # team using the test suite; They enable the warnings below and
         # expect the test suite to be clean.


        


More information about the libcxx-commits mailing list