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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to