[cfe-commits] [PATCH] Do not add duplicate /usr/lib/libstdc++.6.dylib for AddressSanitizer on Darwin

Kostya Serebryany kcc at google.com
Fri Dec 16 09:33:14 PST 2011


I think we need to get rid of AddCXXStdlibLibArgs completely.
On Linux, we already did it.
On Mac, the only reason for this option is that we intercept __cxa_throw
and the interception machinery on Darwin does not work if this symbol is
not present.
We need to fix that.

--kcc

On Fri, Dec 16, 2011 at 4:23 AM, Alexander Potapenko <glider at google.com>wrote:

> Hi,
>
> the attached patch checks whether the current toolchain should call
> AddCXXStdlibLibArgs().
> In the case it should, we don't call it for AddressSanitizer for the
> second time.
>
> --
> Alexander Potapenko
> Software Engineer
> Google Moscow
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111216/032d3866/attachment.html>


More information about the cfe-commits mailing list