summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2016-01-19 20:52:17 +0000
committerNico Weber <nicolasweber@gmx.de>2016-01-19 20:52:17 +0000
commite18e076bd537e7e480f2835a0eb867e904ec8d31 (patch)
tree709cda89211fd2e1b57ab59215640edc3894ae28 /llvm/cmake/modules
parent23abd726e66f44bf1f59c8c23830dd3ea4242b23 (diff)
downloadbcm5719-llvm-e18e076bd537e7e480f2835a0eb867e904ec8d31.tar.gz
bcm5719-llvm-e18e076bd537e7e480f2835a0eb867e904ec8d31.zip
Fix bootstrap -Werror builds after clang r258128
llvm-svn: 258181
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 6db258ff66a..c946b791cb4 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -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).
OpenPOWER on IntegriCloud