[LLVMdev] setting up LLVM to *run on* amd64 but *generate code* for alpha

Misha Brukman brukman at gmail.com
Mon Mar 16 12:03:59 PDT 2009


On Fri, Mar 13, 2009 at 8:41 PM, Zack Weinberg <zackw at panix.com> wrote:

>  - I assume I need a cross-assembler and -linker.  Will GNU binutils
> in cross-architecture mode work for that?  How do I persuade it to use
> them?  It seems to be setting itself up to feed Alpha code to "as"
> instead of "<target-triplet>-as" which isn't going to work.


You'll need to configure llvm-gcc with these flags:

--with-as=[path-to-your-as]
--with-ld=[path-to-your-ld]

You'll also need to have system headers for your target platform ready and
specify them in

--with-sysroot=[path]

when you're configuring llvm-gcc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090316/1244fc61/attachment.html>


More information about the llvm-dev mailing list