aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2021-07-16 03:32:59 +0000
committerMehdi Amini <joker.eph@gmail.com>2021-07-27 04:27:18 +0000
commit402461beb051b6a5c158f1e36d8e2c2b676e8804 (patch)
treea3fdb3bf73bee274354fce073971e1d16bec062b /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent531b19a49e66de5c4b35fc89eebc078c13eb9a85 (diff)
downloadllvm-402461beb051b6a5c158f1e36d8e2c2b676e8804.zip
llvm-402461beb051b6a5c158f1e36d8e2c2b676e8804.tar.gz
llvm-402461beb051b6a5c158f1e36d8e2c2b676e8804.tar.bz2
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. The -Werror=global-constructors is only added on platform that have support for the flag and for which std::mutex does not have a global destructor. This is ensured by having CMake trying to compile a file with a global mutex before adding the flag to libSupport.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions