[compiler-rt] r228384 - [UBSan] Enable -Wglobal-constructors.

Yury Gribov y.gribov at samsung.com
Thu Feb 5 21:53:09 PST 2015


Author: ygribov
Date: Thu Feb  5 23:53:08 2015
New Revision: 228384

URL: http://llvm.org/viewvc/llvm-project?rev=228384&view=rev
Log:
[UBSan] Enable -Wglobal-constructors.

Modified:
    compiler-rt/trunk/lib/ubsan/CMakeLists.txt

Modified: compiler-rt/trunk/lib/ubsan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/CMakeLists.txt?rev=228384&r1=228383&r2=228384&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/ubsan/CMakeLists.txt Thu Feb  5 23:53:08 2015
@@ -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)
 





More information about the llvm-commits mailing list