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

Iain Sandoe iain at codesourcery.com
Thu Aug 29 01:06:01 PDT 2013


Hi,
On 29 Aug 2013, at 00:26, Rafael EspĂ­ndola wrote:

> 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.

Is there an intention to extend this to the more general case where cross-compiling requires access to target libraries for (whichever) cross-targets are available?

(or is there some other accepted scheme analogous to sysroots ?)

cheers
Iain





More information about the cfe-dev mailing list