This is an archive of the discontinued LLVM Phabricator instance.

[MinGW] Support MinGW style library names for default library pragmas
AbandonedPublic

Authored by mstorsjo on Oct 9 2018, 1:21 AM.

Details

Reviewers
rnk
smeenai
Summary

This assumes that the library is an import library for a system dll (named e.g. libkernel32.a) or a static library; it won't work for import libraries for normal user dlls named e.g. libfoo.dll.a). Since ld.bfd doesn't support embedded defaultlibrary directives, this feature probably shouldn't see much use in the wider mingw ecosystem anyway.

This is an alternative to the MinGW specific logic in D53012. This supersedes everything of D52990. If this logic is placed elsewhere, half of D52990 still is required.

Diff Detail

Event Timeline

mstorsjo created this revision.Oct 9 2018, 1:21 AM

If relying on logic in lld, this one can be discarded.

mstorsjo abandoned this revision.Oct 10 2018, 2:16 AM

Not needed as we placed this logic in lld, in D53017, for now.