This is an archive of the discontinued LLVM Phabricator instance.

[LLD] [MinGW] Allow linking to DLLs directly
ClosedPublic

Authored by mstorsjo on Jun 18 2021, 6:07 AM.

Details

Summary

As the COFF linker is capable of linking directly against a DLL now
(after D104530, as long as it is running in mingw mode), don't error
out here but successfully load libraries specified with "-l" from DLLs
if that's what ld.bfd would have matched.

Diff Detail

Event Timeline

mstorsjo requested review of this revision.Jun 18 2021, 6:07 AM
mstorsjo created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJun 18 2021, 6:07 AM
mstorsjo updated this revision to Diff 353172.Jun 18 2021, 11:55 PM

Updated to rerun CI after fixing a test in the base patch

mati865 accepted this revision.EditedJun 26 2021, 6:46 AM

LGTM once D104530 is merged.

This revision is now accepted and ready to land.Jun 26 2021, 6:46 AM
This revision was automatically updated to reflect the committed changes.