[PATCH] clang-cl: Store the linker options for the ASAN runtime libraries in the obj files as opposed to pass it to the linker on the command line

Ehsan Akhgari ehsan.akhgari at gmail.com
Thu Jul 10 07:04:08 PDT 2014

Hmm, thinking more about this patch, this requires you to know whether a
given object file is going to be linked into a DLL when building the C++
source so that you can pass -LD to clang-cl.  That may be not easy to get
right depending on the build system, and when things go wrong you might
need nasty -nodefaultlib arguments to the linker.  Maybe this is not the
right approach after all?


On Thu, Jul 10, 2014 at 8:52 AM, Ehsan Akhgari <ehsan.akhgari at gmail.com>

> Addressed the review comment.
> http://reviews.llvm.org/D4428
> Files:
>   lib/Driver/Tools.cpp
>   test/Driver/cl-link.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140710/79b13a0e/attachment.html>

More information about the cfe-commits mailing list