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

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 7 21:18:27 PDT 2016


Richard Smith <richard at metafoo.co.uk> writes:
> 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.

+1


More information about the cfe-commits mailing list