[PATCH] D53013: [MinGW] Support MinGW style library names for default library pragmas

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 9 01:21:19 PDT 2018


mstorsjo created this revision.
mstorsjo added reviewers: rnk, smeenai.

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 https://reviews.llvm.org/D53012. This supersedes everything of https://reviews.llvm.org/D52990. If this logic is placed elsewhere, half of https://reviews.llvm.org/D52990 still is required.


Repository:
  rC Clang

https://reviews.llvm.org/D53013

Files:
  lib/CodeGen/TargetInfo.cpp
  test/CodeGen/dependent-lib.c
  test/Driver/fsanitize.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53013.168754.patch
Type: text/x-patch
Size: 10733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181009/9aa8bfce/attachment.bin>


More information about the cfe-commits mailing list