This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Add support for -w
ClosedPublic

Authored by keith on Jun 11 2022, 12:17 AM.

Details

Reviewers
MaskRay
Group Reviewers
Restricted Project
Commits
rG7d57c69826a6: [lld-macho] Add support for -w
Summary

This flag suppresses warnings produced by the linker. In ld64 this has
an interesting interaction with -fatal_warnings, it silences the
warnings but the link still fails. Instead of doing that here we still
print the warning and eagerly fail the link in case both are passed,
this seems more reasonable so users can understand why the link fails.

Diff Detail

Event Timeline

keith created this revision.Jun 11 2022, 12:17 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
keith requested review of this revision.Jun 11 2022, 12:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2022, 12:17 AM
MaskRay accepted this revision.Jun 11 2022, 9:38 AM
MaskRay added inline comments.
lld/Common/ErrorHandler.cpp
246

delete braces for one-line simple body.

This revision is now accepted and ready to land.Jun 11 2022, 9:38 AM
This revision was automatically updated to reflect the committed changes.