[cfe-commits] Patches for bootstrapping on armv7 linux

Rafael Espindola espindola at google.com
Mon Aug 9 13:42:00 PDT 2010


> No, I think what clang is currently doing is right, for some
> definition of right.
>
> The particular problem here is that Clang isn't picking the LLVM style
> triple, or choosing the CPU based on the host. I agree those are
> problems worth solving, but I don't think hardwiring it to something
> from the build environment is the right solution.

Being able to set the default target to be used is a fairly
fundamental issue in building a cross compiler. Even if we implement
all of the "universal driver" proposal, it would still be necessary to
set the default somehow.

> As a short term solution, have you considered changing
> llvm::sys::getHostTriple to just return the LLVM style triple name?

That is not the problem. The problem is that it will return a plain
"arm" instead of armv7. I should be able to configure clang with

./configure --target=armv7-none-linux-gnueabi

on any host and have "./Debug/bin/clang -S test.c " use movw/movt.

The actual name of the configure option is not very important, but
there should be a way.

>  - Daniel

Cheers,
-- 
Rafael Ávila de Espíndola




More information about the cfe-commits mailing list