Skip to content

Commit df7d9c8

Browse files
committed
Revert "Build libSupport with -Werror=global-constructors (NFC)"
This reverts commit 5eb2e9a. This broke MacOS builds, needs to have a safer check guarding the flag addition.
1 parent 5eb2e9a commit df7d9c8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Support/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
include(GetLibraryName)
22

3-
# Ensure that libSupport does not carry any static global initializer.
4-
# libSupport can be embedded in use cases where we don't want to load all
5-
# cl::opt unless we want to parse the command line.
6-
# ManagedStatic can be used to enable lazy-initialization of globals.
7-
add_flag_if_supported("-Werror=global-constructors" WERROR_GLOBAL_CONSTRUCTOR)
8-
93
if(LLVM_ENABLE_ZLIB)
104
set(imported_libs ZLIB::ZLIB)
115
endif()

0 commit comments

Comments
 (0)