Build libSupport with -Werror=global-constructors (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Fri, 16 Jul 2021 03:32:59 +0000 (03:32 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 16 Jul 2021 22:25:03 +0000 (22:25 +0000)
commit1f71bcabb77df482cc0dc7bab90a73e15f3e347b
tree93b06c58ef4d215890e608283175cecab494426a
parentad8e75caa2ebface54c92d7e4d7dc21c3166b6c6
Build libSupport with -Werror=global-constructors (NFC)

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.
llvm/lib/Support/CMakeLists.txt