diff options
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/CMakeLists.txt index 3aa56b1f655..54760cb4c4f 100644 --- a/compiler-rt/lib/sanitizer_common/CMakeLists.txt +++ b/compiler-rt/lib/sanitizer_common/CMakeLists.txt @@ -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. |

