[UBSan] Enable -Wglobal-constructors.

llvm-svn: 228384
This commit is contained in:
Yury Gribov 2015-02-06 05:53:08 +00:00
parent bc7a86b98d
commit 55aae51325
1 changed files with 5 additions and 0 deletions

View File

@ -17,7 +17,12 @@ include_directories(..)
set(UBSAN_CFLAGS ${SANITIZER_COMMON_CFLAGS})
append_no_rtti_flag(UBSAN_CFLAGS)
append_list_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors
UBSAN_CFLAGS)
set(UBSAN_CXXFLAGS ${SANITIZER_COMMON_CFLAGS})
append_list_if(COMPILER_RT_HAS_WGLOBAL_CONSTRUCTORS_FLAG -Wglobal-constructors
UBSAN_CXXFLAGS)
add_custom_target(ubsan)