[libcxx-commits] [libcxx] r364144 - Fix placement of -Wno-ignored-attributes

Eric Fiselier via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jun 22 17:31:19 PDT 2019


Author: ericwf
Date: Sat Jun 22 17:31:18 2019
New Revision: 364144

URL: http://llvm.org/viewvc/llvm-project?rev=364144&view=rev
Log:
Fix placement of -Wno-ignored-attributes

Modified:
    libcxx/trunk/CMakeLists.txt

Modified: libcxx/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/CMakeLists.txt?rev=364144&r1=364143&r2=364144&view=diff
==============================================================================
--- libcxx/trunk/CMakeLists.txt (original)
+++ libcxx/trunk/CMakeLists.txt Sat Jun 22 17:31:18 2019
@@ -565,7 +565,9 @@ add_compile_flags_if_supported(
 if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
     add_compile_flags_if_supported(
         -Wno-user-defined-literals
-        -Wno-covered-switch-default)
+        -Wno-covered-switch-default
+        -Wno-ignored-attributes # FIXME: Caused by _LIBCPP_NODEBUG_TYPE not being supported on older clangs
+        )
     if (LIBCXX_TARGETING_CLANG_CL)
       add_compile_flags_if_supported(
         -Wno-c++98-compat
@@ -582,7 +584,6 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "
         -Wno-deprecated # FIXME: Remove this and fix all occurrences.
         -Wno-shift-sign-overflow # FIXME: Why do we need this with clang-cl but not clang?
         -Wno-double-promotion # FIXME: remove me
-        -Wno-ignored-attributes # FIXME: Caused by _LIBCPP_NODEBUG_TYPE not being supported on older clangs
       )
     endif()
 elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")




More information about the libcxx-commits mailing list