[PATCH] D42758: Support `#pragma comment(lib, "name")` in the frontend for ELF

James Henderson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 6 06:24:31 PST 2018


jhenderson added a comment.

In https://reviews.llvm.org/D42758#997880, @erichkeane wrote:

> I'd like to see @probinson s PS4 discussion bottom out, but I don't see any reason to hold this up otherwise.


The PS4 compiler uses its linker options mechanism to communicate three different things to the linker, namely `#pragma comment(lib, ...)` directives, as discussed here, symbols marked with `__declspec(dllexport)`, and symbols marked with `__declspec(dllimport)` (the latter two requesting the linker explicitly to export/import the decorated symbols). I think if all three of these are converted to linker commands, we should be able to adopt the new implementation.


Repository:
  rC Clang

https://reviews.llvm.org/D42758





More information about the cfe-commits mailing list