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 at 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
On Mon, Jul 20, 2009 at 4:15 AM, Carter Cheng<carter_cheng at yahoo.com> wrote:> This is probably another very basic question- but is there a simple method for cross compiling LLVM for another platform?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. --- On Mon, 7/20/09, Eli Friedman <eli.friedman at gmail.com> wrote:> From: Eli Friedman <eli.friedman at gmail.com> > Subject: Re: [LLVMdev] Basic question- cross compiling LLVM > To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Date: Monday, July 20, 2009, 5:36 AM > On Mon, Jul 20, 2009 at 4:15 AM, > Carter Cheng<carter_cheng at yahoo.com> > wrote: > > This is probably another very basic question- but is > there a simple method for cross compiling LLVM for another > platform? > > 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 > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu > http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >