Skip to content
Snippets Groups Projects
Commit df7d9c8c authored by Mehdi Amini's avatar Mehdi Amini
Browse files

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

This reverts commit 5eb2e9aa.
This broke MacOS builds, needs to have a safer check guarding the flag
addition.
parent 5eb2e9aa
No related branches found
No related tags found
No related merge requests found
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment