[LLVMdev] [cfe-dev] Sanitizers libs in Compiler-RT

Renato Golin renato.golin at linaro.org
Fri Jan 31 02:30:19 PST 2014


On 31 January 2014 09:59, Alexey Samsonov <samsonov at google.com> wrote:

> Huh? What tests are you talking about? I thought that tests for Clang
> driver verifiy that the command "clang++ -fsanitize=address ...." produce a
> correct linker invocation (with path to
> /lib/clang/3.5/linux/libclang_rt.asan-arm.a), but don't actually require
> the libraries to be built there. If it's not the case, we should fix that.
>

I got linker errors, since /lib/clang/3.5/linux/libclang_rt.asan-armv7l.a
(or arm for that matter) wasn't there, since "arm" is not a recognized
architecture.

My point is that Clang sanitizer tests should *only* run IFF:

1. Compiler-rt is present AND
2. The architecture is recognized AND
3. The Asan/Lsan/UBsan etc libraries were enabled via some build option
(individually checked).

I may be wrong, but right now, it seems that they all run once compiler-rt
is available.

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140131/274287c6/attachment.html>


More information about the llvm-dev mailing list