[PATCH] D24048: [Driver] [Darwin] Add sanitizer libraries even if -nodefaultlibs is passed

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 7 17:09:15 PDT 2016


+1

On Wed, Sep 7, 2016 at 6:04 PM, Richard Smith <richard at metafoo.co.uk> wrote:

> rsmith added a subscriber: rsmith.
> rsmith added a comment.
>
> My 2c: `-nodefaultlibs` means "don't link against any libraries I didn't
> explicitly tell you to". `-fsanitize=*` as a driver argument *when linking*
> is an explicit request to link against the sanitizer runtimes. So that
> should win. If you don't want to link against the sanitizer runtimes, link
> without the `-fsanitize=` flag, or append `-fno-sanitize=all` to the link
> line.
>
>
> https://reviews.llvm.org/D24048
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160907/a514b205/attachment.html>


More information about the cfe-commits mailing list