<div dir="ltr">On 18 July 2013 08:50, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">But then you'll hit the fun of trying to get Clang to find Android's<br>
headers and libraries<br></blockquote><div><br></div><div>Some Linaro folks are also trying to build Android with Clang and they have some wrappers to make clang work transparently (as a cross-compiler from Intel to ARM). They all hangout on the LLVMLinux mailing list or IRC channel (OFTC, #llvmlinux). </div>
<div><br></div><div>There are also ABI issues, since androideabi is not gnueabi which is not aeabi and Clang/LLVM knows very little about the difference (but the Kernel breaks because of enum sizes and other little things).</div>
<div><br></div><div>I never built it myself, but I know that it's not trivial because the Android build system is something of a marvel of the modern world that has GCC hard-coded all over the place. Using the Clang wrapper should work with a standard Clang binary (if it has the ARM back-end), so the way you build Clang shouldn't matter much.</div>
<div></div></div><br></div><div class="gmail_extra">Good luck!</div><div class="gmail_extra">--renato</div></div>