[PATCH] Improve #pragma comment(lib) support

Aaron Ballman aaron at aaronballman.com
Fri May 24 07:01:14 PDT 2013


This patch moves the functionality to TargetInfo.  Interesting thing
to note is that this changes the autolink behavior, whereas the
previous patch did not; is that acceptable (I don't know much about
autolink).

Thanks!

~Aaron

On Fri, May 24, 2013 at 7:55 AM, Reid Kleckner <rnk at google.com> wrote:
> It's probably better to move this to TargetInfo.  Specifically
> WinX86_32/64TargetCodeGenInfo know about /defaultlib already.
>
>
> On Thu, May 23, 2013 at 4:44 PM, Aaron Ballman <aaron at aaronballman.com>
> wrote:
>>
>> One of the things comment(lib) does in MSVC is automatically suffix
>> the argument with ".lib" if needs be.  This patch implements the same
>> logic, which allows us to properly link libraries such as ones
>> provided by the MSDN examples
>> (http://msdn.microsoft.com/en-us/library/7f0aews7(v=vs.80).aspx).
>>
>> ~Aaron
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comment_lib.patch
Type: application/octet-stream
Size: 4127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130524/10a89733/attachment.obj>


More information about the cfe-commits mailing list