[LLVMdev] Cross compile LLVM

Rami Jiossy sramij at gmail.com
Thu Dec 13 14:01:59 PST 2012


Hi;

I am trying to cross compile LLVM for Android-NDK;
I am using CMake as a build system; hence, i have defined CMAKE_SYSTEM_NAME
variable so to turn on CMAKE_CROSSCOMPILING flag, being used by LLVM.

As far as i understand from the LLVM structure; when cross compiling,
executable are generated with two versions; one goes under the target build
directory ${CMAKE_BINARY_DIR} and the other goes into
${CMAKE_BINARY_DIR}/native/....

We i do that, i get all the tblgen + clang executable generated like that.

however, the tools under TOOLS don't; and they aren't runnable on the
host-build system.

why is that? any ideas are appreciated.

Thanks

-- 
Rami
     Tel.     4-865-6245
     Pele.    54-8159949
     e-mail. sramij at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121214/a66aa082/attachment.html>


More information about the llvm-dev mailing list