[LLVMdev] compiler-rt for ARM-Linux with CMake?

Renato Golin renato.golin at linaro.org
Thu Jan 23 03:06:26 PST 2014

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

> DId you do this locally? I can't see a commit.

Locally, yes.

1) Specify arm_SOURCES and add "arm" to this loop in

I did this...

> 2) Make sure CAN_TARGET_arm is properly defined in
> compiler-rt/CMakeLists.txt. See test_target_arch function
> and places where it's called.

But not this... Ok, I can now see errors in the cmake invocation, which
hints me I'm in the right direction.

Note that at the moment the CMake build
> uses host compiler (not just-built Clang) to
> build compiler-rt libraries, so building compiler-rt targeting arm on
> x86_64 host might be a problem.

Right, I'll keep that in mind when I get there, thanks!

We run AddressSanitizer tests on arm-android. Probably it should work
> fine on ARM+Linux, but we don't have a buildbot
> or continuous testing for that (and you'd have to add support for
> building sanitizers on ARM Linux in a similar way).

My end goal is to have a buildbot with both compiler-rt and
libc++/libc++abi for ARM+Linux, but that might not come until much later.

Thanks for the references, I'll keep breaking it until it works. ;)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140123/6a60ea3d/attachment.html>

More information about the llvm-dev mailing list