This is an archive of the discontinued LLVM Phabricator instance.

[Clang][Driver] Change missing multilib error to warning
ClosedPublic

Authored by michaelplatings on Jun 27 2023, 8:32 AM.

Details

Summary

The error could be awkward to work around when experimenting with flags
that didn't have a matching multilib. It also broke many tests when
multilib.yaml was present in the build directory.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2023, 8:32 AM
michaelplatings requested review of this revision.Jun 27 2023, 8:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2023, 8:32 AM
simon_tatham added inline comments.Jun 27 2023, 8:46 AM
clang/include/clang/Basic/DiagnosticDriverKinds.td
740–742

Tiny clarity nit: any chance of renaming this identifier to warn_drv_missing_multilib, while we're renaming it anyway? Then the command-line option to control the warning matches the identifier inside the code, and makes it easier to guess the spelling of either one if you had the other one already in mind.

Rename variable

michaelplatings marked an inline comment as done.Jun 27 2023, 12:59 PM
simon_tatham accepted this revision.Jun 28 2023, 1:19 AM
This revision is now accepted and ready to land.Jun 28 2023, 1:19 AM
MaskRay accepted this revision.Jun 28 2023, 4:02 PM