Basic question- cross compiling LLVM

This is probably another very basic question- but is there a simple method for cross compiling LLVM for another platform?

Thanks in advance.

Carter Cheng skrev:

This is probably another very basic question- but is there a simple method for cross compiling LLVM for another platform?

Thanks in advance.

_______________________________________________
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
  

You can try Misha Brukman's cross compile scripts as mentioned in the
CROSS COMPILING LLVM thread:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-June/022989.html

Personally i use Open Embedded to crosscompile llvm for ARM.
http://wiki.openembedded.net/index.php/Main_Page

To what target do you want to crosscompile llvm?

Cheers
Xerxes

If you already have a cross-compiling environment set up, it shouldn't
be too hard; for LLVM and llvm-gcc, you should be able to pass in
--host=mytarget to configure, and if you're lucky, it'll just work
(but for llvm-gcc, make sure to read the README file first).

There's a script to compile a complete cross-compile environment plus
LLVM and llvm-gcc for ARM in
utils/crosstool/ARM/build-install-linux.sh in the LLVM tree; that
might be useful as a reference, depending on what you're doing.

-Eli

Thanks.