This is an archive of the discontinued LLVM Phabricator instance.

[lld-macho] Support -filelist
ClosedPublic

Authored by int3 on Jul 23 2020, 9:21 PM.

Details

Reviewers
compnerd
Group Reviewers
Restricted Project
Commits
rG4853a86022fe: [lld-macho] Support -filelist
Summary

XCode passes files in using this flag

Diff Detail

Event Timeline

int3 created this revision.Jul 23 2020, 9:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2020, 9:21 PM
compnerd accepted this revision.Jul 24 2020, 9:42 AM
compnerd added a subscriber: compnerd.

Although Im not a fan of the test, I don't think that is necessarily a blocking thing.

lld/test/MachO/filelist.s
23

I'm not too fond of this test ... it relies on subsections_via_symbols not being present which is actually odd for MachO. An alternative would be to rely on the multiple definitions check to identify the source for the second definition.

This revision is now accepted and ready to land.Jul 24 2020, 9:42 AM
int3 marked an inline comment as done.Jul 24 2020, 12:37 PM
int3 added inline comments.
lld/test/MachO/filelist.s
23

not sure I follow. I added .subsections_via_symbols (to all 3 input files here) and the test still gave the same result

This revision was landed with ongoing or failed builds.Jul 28 2020, 10:02 AM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Jul 28 2020, 10:41 AM

Looks like this breaks tests on win: http://45.33.8.238/win/20771/step_10.txt

int3 added a comment.Jul 28 2020, 11:05 AM

Thanks for the heads up. Just pushed a5b89c2853 which should hopefully fix things; will monitor the buildbots.