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

Evgeniy Stepanov via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 2 11:43:20 PDT 2016


eugenis added a comment.

I would also expect -nodefaultlibs and -nostdlib to remove all standard libraries from the link command line, including the sanitizer ones.

I like the idea of -flink-sanitizer-runtime=address, but may be without "address" - the set of sanitizer runtime libraries can be found from -fsanitize=* flags.

Alternatively, we could extend (or add something like) -print-libgcc-name to report the set of sanitizer link flags (there may be multiple libraries and possible other flags).


https://reviews.llvm.org/D24048





More information about the cfe-commits mailing list