[libc++] Avoid warning for large types with std::atomic in the test suite
authorLouis Dionne <ldionne@apple.com>
Thu, 4 Jun 2020 18:04:01 +0000 (14:04 -0400)
committerLouis Dionne <ldionne@apple.com>
Thu, 4 Jun 2020 18:06:04 +0000 (14:06 -0400)
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.

libcxx/utils/libcxx/test/config.py

index 995d0e1..be8ee3b 100644 (file)
@@ -636,6 +636,7 @@ class Configuration(object):
         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.