This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] warn on -install_name without -dylib
ClosedPublic

Authored by thakis on Mar 9 2021, 7:05 AM.

Details

Reviewers
int3
Group Reviewers
Restricted Project
Commits
rG6e92f468c82b: [lld/mac] warn on -install_name without -dylib
Summary

The flag doesn't (and shouldn't) have an effect in that case.
ld64 doesn't warn on this, but it seems like a good thing to do.
If it causes problems in practice for some reason, we can revert it.

Also add a dedicated test for install_name.

Diff Detail

Event Timeline

thakis created this revision.Mar 9 2021, 7:05 AM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Mar 9 2021, 7:05 AM
int3 accepted this revision.Mar 9 2021, 12:05 PM

lgtm, though I wonder if we can make some sort of tblgen macro to make specifying these behaviors more terse

This revision is now accepted and ready to land.Mar 9 2021, 12:05 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2021, 6:14 AM