forked from OSchip/llvm-project
[CMake] Build compiler-rt libraries with -Wall
llvm-svn: 203113
This commit is contained in:
parent
2516974e83
commit
4a7e96e642
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue