OSDN Git Service

Fix bootstrap -Werror builds after clang r258128
authorNico Weber <nicolasweber@gmx.de>
Tue, 19 Jan 2016 20:52:17 +0000 (20:52 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 19 Jan 2016 20:52:17 +0000 (20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258181 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index 6db258f..c946b79 100644 (file)
@@ -403,6 +403,9 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
     append("-Wall -W -Wno-unused-parameter -Wwrite-strings" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
     append("-Wcast-qual" CMAKE_CXX_FLAGS)
 
+    # FIXME: Clean up the codebase, then remove this flag.
+    add_flag_if_supported("-Wno-expansion-to-defined" EXPANSION_TO_DEFINED_FLAG)
+
     # Turn off missing field initializer warnings for gcc to avoid noise from
     # false positives with empty {}. Turn them on otherwise (they're off by
     # default for clang).