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.
Paths
| Differential D98259
[lld/mac] warn on -install_name without -dylib ClosedPublic Authored by thakis on Mar 9 2021, 7:05 AM.
Details
Summary The flag doesn't (and shouldn't) have an effect in that case. Also add a dedicated test for install_name.
Diff Detail Event TimelineComment Actions 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 Closed by commit rG6e92f468c82b: [lld/mac] warn on -install_name without -dylib (authored by thakis). · Explain WhyMar 10 2021, 6:14 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 329326 lld/MachO/Driver.cpp
lld/test/MachO/install-name.s
|