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

Eric Schweitz via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 10:30:10 PDT 2024


schweitzpgi 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?

It is the only instance. It would be nice to fix this upstream instead of have to patch around it in the build environment since it is trivial.

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


More information about the llvm-commits mailing list