Revert "Build libSupport with -Werror=global-constructors (NFC)"

This reverts commit 1f71bcabb7.

Some platform have global destructors for std::mutex that still
needs to be fixed.
This commit is contained in:
Mehdi Amini 2021-07-16 22:46:17 +00:00
parent 6eb576dcff
commit 2bad8bd089
1 changed files with 0 additions and 6 deletions

View File

@ -1,11 +1,5 @@
include(GetLibraryName)
# Ensure that libSupport does not carry any static global initializer.
# libSupport can be embedded in use cases where we don't want to load all
# cl::opt unless we want to parse the command line.
# ManagedStatic can be used to enable lazy-initialization of globals.
add_flag_if_supported("-Werror=global-constructors" WERROR_GLOBAL_CONSTRUCTOR)
if(LLVM_ENABLE_ZLIB)
set(imported_libs ZLIB::ZLIB)
endif()