This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Implement -force_load_swift_libs
ClosedPublic

Authored by int3 on Jun 4 2021, 11:43 AM.

Details

Reviewers
gkm
thakis
Group Reviewers
Restricted Project
Commits
rG447dfbe005a7: [lld-macho] Implement -force_load_swift_libs
Summary

It causes libraries whose names start with "swift" to be force-loaded.
Note that unlike the more general -force_load, this flag only applies
to libraries specified via LC_LINKER_OPTIONS, and not those passed on
the command-line. This is what ld64 does.

Diff Detail

Event Timeline

int3 created this revision.Jun 4 2021, 11:43 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: dang. · View Herald Transcript
int3 requested review of this revision.Jun 4 2021, 11:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 4 2021, 11:43 AM
int3 edited the summary of this revision. (Show Details)Jun 4 2021, 11:47 AM
thakis accepted this revision.Jun 6 2021, 12:52 PM
thakis added a subscriber: thakis.

Yikes, what a hacky flag!

This revision is now accepted and ready to land.Jun 6 2021, 12:52 PM
This revision was automatically updated to reflect the committed changes.