[all-commits] [llvm/llvm-project] 579cc9: Build libSupport with -Werror=global-constructors ...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Sun Jul 25 20:04:57 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 579cc9ad2e2db6c3f1670b9f42c2cfe67bc5722c
https://github.com/llvm/llvm-project/commit/579cc9ad2e2db6c3f1670b9f42c2cfe67bc5722c
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2021-07-26 (Mon, 26 Jul 2021)
Changed paths:
M llvm/lib/Support/CMakeLists.txt
Log Message:
-----------
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.
More information about the All-commits
mailing list