[CMake] Build compiler-rt libraries with -Wall

llvm-svn: 203113
This commit is contained in:
Alexey Samsonov 2014-03-06 12:25:02 +00:00
parent 2516974e83
commit 4a7e96e642
2 changed files with 2 additions and 0 deletions

View File

@ -235,6 +235,7 @@ pythonize_bool(COMPILER_RT_DEBUG)
#================================
include(config-ix)
add_definitions_if(COMPILER_RT_HAS_WALL_FLAG -Wall)
if(COMPILER_RT_ENABLE_WERROR)
add_definitions_if(COMPILER_RT_HAS_WERROR_FLAG -Werror)
add_definitions_if(COMPILER_RT_HAS_WX_FLAG /WX)

View File

@ -26,6 +26,7 @@ check_cxx_compiler_flag(-g COMPILER_RT_HAS_G_FLAG)
check_cxx_compiler_flag(/Zi COMPILER_RT_HAS_Zi_FLAG)
# Warnings.
check_cxx_compiler_flag(-Wall COMPILER_RT_HAS_WALL_FLAG)
check_cxx_compiler_flag(-Werror COMPILER_RT_HAS_WERROR_FLAG)
check_cxx_compiler_flag("-Werror -Wframe-larger-than=512" COMPILER_RT_HAS_WFRAME_LARGER_THAN_FLAG)
check_cxx_compiler_flag("-Werror -Wglobal-constructors" COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG)