[PATCH] D24048: [Driver] [Darwin] Add sanitizer libraries even if -nodefaultlibs is passed
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 7 17:04:40 PDT 2016
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.
More information about the cfe-commits