This is an archive of the discontinued LLVM Phabricator instance.

[Object] Use COFF archive format for import libraries.
ClosedPublic

Authored by jacek on Jul 27 2023, 11:55 AM.

Details

Summary

This is similar to D143540 for import libraries. ARM64EC will need it for EC symbol table, but it should be fine for other targets as well and it improves MSVC compatibility. I left mingw case unchanged to be safe, although I think that it wouldn't hurt to change that as well.

Diff Detail

Event Timeline

jacek created this revision.Jul 27 2023, 11:55 AM
jacek requested review of this revision.Jul 27 2023, 11:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2023, 11:55 AM
mstorsjo accepted this revision.Jul 27 2023, 11:15 PM

The change LGTM. I’m not familiar with what the visible effects in the test are due to this change though; the symbols appear sorted where they previously weren’t?

This revision is now accepted and ready to land.Jul 27 2023, 11:15 PM
jacek added a comment.Jul 28 2023, 4:42 AM

The change LGTM. I’m not familiar with what the visible effects in the test are due to this change though; the symbols appear sorted where they previously weren’t?

Thanks. Yes, the visible change is that symbols are sorted. All other minor format differences are abstracted by Archive class. I will add a note to the commit message.

This revision was landed with ongoing or failed builds.Jul 28 2023, 5:29 AM
This revision was automatically updated to reflect the committed changes.
This comment was removed by vadikp-intel.