[cfe-dev] Driver interaction with -fsanitize=memory

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Aug 28 16:26:10 PDT 2013


On 28 August 2013 04:42, Evgeniy Stepanov <eugeni.stepanov at gmail.com> wrote:
> Another option we've been using is placing libc++/libstdc++ at a
> standard library path + a suffix, like /usr/lib/msan. Driver could add
> an -L for that path before /usr/lib. Other msan-instrumented system
> libraries could be placed at that path, too, and they will be
> automagically picked up when building with msan.
>
> I like the idea of installing libc++ alongside clang. Could we have
> that as default (with either -msan name suffix, or /msan/ path suffix,
> not sure which is better), but overrideable with something like
> --libc++-path?

I like the idea. I will try to first make clang look for libc++ in the
install dir and then implement the lib/msan logic.

Cheers,
Rafael



More information about the cfe-dev mailing list