This is an archive of the discontinued LLVM Phabricator instance.

[lld/mac] Add a test for -reexport_library + -dead_strip_dylibs
ClosedPublic

Authored by thakis on Jun 7 2021, 7:24 AM.

Details

Summary

Our behavior here already matched ld64, now we have a test for it.

(ld64 even strips the library here if you also pass -needed_library bar.dylib.
That seems wrong to me, and lld honors needed_library in that case.)

Diff Detail

Event Timeline

thakis created this revision.Jun 7 2021, 7:24 AM
Herald added a project: Restricted Project. · View Herald Transcript
thakis requested review of this revision.Jun 7 2021, 7:24 AM
int3 accepted this revision.Jun 7 2021, 9:59 AM
int3 added a subscriber: int3.

Thanks!

This revision is now accepted and ready to land.Jun 7 2021, 9:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2021, 10:45 AM