[cfe-dev] Targeting ARM with Clang

Daniel Dunbar daniel at zuster.org
Sun Jul 18 13:42:04 PDT 2010


Right, this is the most accurate answer.

The main answer to a lot of the questions posed in this thread is "no
one has done it yet". There is no real reason we can't support -arch
on non-Darwin, I just haven't done the driver work for it. As with
many things, it is on my TODO list, but it hasn't made it to the top.

As for supporting targeting ARM, my official position on this is:
 (a) Yes, you can kind of do it with -ccc-host-triple.
 (b) This isn't a supported usage model. If it works for you, great,
but I don't think we should tell users to try it.
 (c) We should do the universal driver work to create a real cross
compilation model that actually works.

 - Daniel

On Sun, Jul 18, 2010 at 12:49 PM, Rafael Espindola <espindola at google.com> wrote:
>> Any insight/suggestions on where to look up more detailed information on defining a ToolChain would be appreciated.
>
> For now clang has hard coded values for linkers, assemblers, include
> paths, etc. If you just want to patch it to do what you want, it
> shouldn't be hard. Just search for how freebsd does it for example. If
> you want to make it more general, you can try working on
>
> http://clang.llvm.org/UniversalDriver.html
> http://llvm.org/bugs/show_bug.cgi?id=4127
>
>
>> Sincerely,
>> Philippe Hausler
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>
>
> Cheers,
> --
> Rafael Ávila de Espíndola
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>




More information about the cfe-dev mailing list