[llvm] Workaround -Wglobal-constructor warning. (PR #94699)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 11:33:20 PDT 2024


dwblaikie wrote:

If it's been around for 7 years, it seems like a bit of a change to start enforcing a build invariant now - and maybe a hassle for you if it's not an invariant that the rest of the developers on LLVM are actively enforcing... (& so may be better for you to disable this warning when building LLVM, rather than trying to clean it up)

And is this really the only instance/problem? As much as LLVM's tried to avoid global ctors, my understanding was that it was far from clean. I'd imagine once this is fixed, you'd hit more/other instances of this?

https://github.com/llvm/llvm-project/pull/94699


More information about the llvm-commits mailing list