[cfe-dev] Targeting ARM with Clang

Eli Friedman eli.friedman at gmail.com
Fri Jul 16 13:26:17 PDT 2010


On Fri, Jul 16, 2010 at 1:06 PM, David McNamara
<david.mcnamara at crescentbaysoftware.com> wrote:
> All,
>
>  I am just learning about clang/ llvm now and I have a very simple
> question (and I must be missing something easy) but can someone answer
> how I can use clang to create an ARM executable?

Cross-compilation with clang isn't really properly supported... "clang
-ccc-host-triple armv7-apple-darwin10 foo.c -c" (using an appropriate
triple for your platform) might do something close to what you want,
but expect to run into issues.

-Eli




More information about the cfe-dev mailing list