This is an archive of the discontinued LLVM Phabricator instance.

[CMake][llvm] avoid changing global flags (may be used outside of llvm)
ClosedPublic

Authored by radford on Apr 20 2021, 3:33 PM.

Details

Summary

Changing global flags can break builds of projects that include/build
llvm as a sub-project, as the effect is global. Ideally we would
disable this warning at the directory level instead, but the obvious
way (disabling warning:D9025) isn't supported. At least we can limit
the effect to only MSVC.

Diff Detail

Event Timeline

radford created this revision.Apr 20 2021, 3:33 PM
radford requested review of this revision.Apr 20 2021, 3:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2021, 3:33 PM
rnk accepted this revision.Apr 20 2021, 3:38 PM

lgtm

This revision is now accepted and ready to land.Apr 20 2021, 3:38 PM
This revision was landed with ongoing or failed builds.Apr 20 2021, 4:07 PM
This revision was automatically updated to reflect the committed changes.