[compiler-rt] r190504 - [Sanitizer] build sanitizer_common library with -Wglobal-constructors
Alexey Samsonov
samsonov at google.com
Wed Sep 11 02:57:15 PDT 2013
Author: samsonov
Date: Wed Sep 11 04:57:15 2013
New Revision: 190504
URL: http://llvm.org/viewvc/llvm-project?rev=190504&view=rev
Log:
[Sanitizer] build sanitizer_common library with -Wglobal-constructors
Modified:
compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt
Modified: compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt?rev=190504&r1=190503&r2=190504&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/sanitizer_common/CMakeLists.txt Wed Sep 11 04:57:15 2013
@@ -67,6 +67,10 @@ else()
/GR-)
endif()
+if(SUPPORTS_GLOBAL_CONSTRUCTORS_FLAG)
+ list(APPEND SANITIZER_CFLAGS -Wglobal-constructors)
+endif()
+
set(SANITIZER_RUNTIME_LIBRARIES)
if(APPLE)
# Build universal binary on APPLE.
More information about the llvm-commits
mailing list