diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-29 12:08:36 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-29 12:08:36 +0000 |
commit | 0bc4a0b9c7cae94e4a1d50a77a53cb92781b46c5 (patch) | |
tree | 4aaaa535fd65f432df67a1c38aa2928094cbf493 /CMakeLists.txt | |
parent | d9760ab05f99451ffe7528a3e03e98ab67e09383 (diff) | |
download | compiler-rt-0bc4a0b9c7cae94e4a1d50a77a53cb92781b46c5.tar.gz compiler-rt-0bc4a0b9c7cae94e4a1d50a77a53cb92781b46c5.tar.bz2 compiler-rt-0bc4a0b9c7cae94e4a1d50a77a53cb92781b46c5.tar.xz |
[TSan] Add a couple of compiler warnings to TSan runtime compile flags
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 72b9371d..4a7be9c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,8 @@ check_cxx_compiler_flag(-Wno-non-virtual-dtor SUPPORTS_NO_NON_VIRTUAL_DTOR_FLAG) if (SUPPORTS_NO_NON_VIRTUAL_DTOR_FLAG) list(APPEND SANITIZER_COMMON_CFLAGS -Wno-non-virtual-dtor) endif() +check_cxx_compiler_flag(-Wglobal-constructors SUPPORTS_GLOBAL_CONSTRUCTORS_FLAG) +# Not all sanitizers forbid global constructors. # Setup min Mac OS X version. if(APPLE) |