forked from OSchip/llvm-project
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:
parent
6eb576dcff
commit
2bad8bd089
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue