[cfe-dev] building clang as a crosscompiler

Jean-Daniel Dupas devlists at shadowlab.org
Thu Jul 24 09:23:34 PDT 2008



Le 24 juil. 08 à 17:21, Luís Marques a écrit :
> Hi,
>
> I'm having some problems building clang as a crosscompiler.
> What's the status on crosscompilation?
> Can you, say, build clang on a x86_64 to compile for powerpc? (I got  
> error while building clang)
> Can you build clang to compile for pic16? I can't get configure to  
> accept the target.
>
> Thanks,
> Luís Marques

I don't know about the current status of this function but AFAK this  
is not a build configuration option.
You can build it using a "./configure && make" command and then using  
it using the arch argument:

clang -arch ppc myFile.c
clang -arch i386 myFile.c





More information about the cfe-dev mailing list