This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Downgrade missing fat arch to warning
ClosedPublic

Authored by keith on Jan 12 2023, 2:44 PM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rGd4cf89ad5a37: [lld-macho] Downgrade missing fat arch to warning
Summary

This mirrors ld64's behavior. In many cases this likely still leads to a
link failure but if you didn't actually use anything from the library
it can be ignored. If you care about these invalid cases -fatal_warnings
still upgrades it back to an error.

Example: https://github.com/keith/ld64.lld/issues/3

Diff Detail

Event Timeline

keith created this revision.Jan 12 2023, 2:44 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 12 2023, 2:44 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
keith requested review of this revision.Jan 12 2023, 2:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2023, 2:44 PM
int3 accepted this revision.Jan 12 2023, 3:51 PM
int3 added a subscriber: int3.

Might be nice for us to add more detail in the error/warning message indicating the arch looked for vs the archs actually found. Also the message should be standardized into the $path: $message form. We can do that later though, this diff is fine as-is

This revision is now accepted and ready to land.Jan 12 2023, 3:51 PM
This revision was automatically updated to reflect the committed changes.