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

Anna Zaks via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 31 15:02:00 PDT 2016


zaks.anna added a comment.

-nostdlib is often used to build parts of libsystem. It's worth noting that ASan and TSan are not supported for use on libsystem on darwin (and elsewhere?), though some subcomponents of it can be sanitized. I am not sure how this relates to UBSan.

The user experience of not passing the liker flag is confusing. One proposed solution is to have the clang driver error out when -fsanitize=address and -nostdlib are used together. I am not sure if the warning is sufficient. The error/warning should say that this combination is unsupported at least on Darwin.

Chris, what is the driver behind this?

Kuba, what do you think?

No tests?


https://reviews.llvm.org/D24048





More information about the cfe-commits mailing list