[llvm-commits] [cfe-commits] Ping^2: Fix for bug 11060: configure --target does not work

Joerg Sonnenberger joerg at britannica.bec.de
Wed Oct 26 19:29:13 PDT 2011


On Wed, Oct 26, 2011 at 01:33:38PM -0500, Sebastian Pop wrote:
[snip]
> 
> > Which part of "LLVM_HOSTTRIPLE controls the target" was unclear?
> 
> LLVM_HOSTTRIPLE should *not* control the target.
> $host and $target are two different things (in the cross compilers world.)

*sigh* Can you please check what the code is using LLVM_HOSTTRIPLE for?
Hint: it is the default target. As I said earlier and as you have
ignored, the notation of host and target in LLVM/Clang is generally
bogus and and most (if not all) notions of "host" actually mean
"target". The host system for the compiler is pretty much irrelevant
other than to get the right compiler for building and maybe the right
endianess.

> How would you select the value set by configure in $target after you
> have thrown away the information that configure has set in $target?

I've told you already, I think deriving the default value of
LLVM_HOSTTRIPLE from $target makes more sense. What I object to is
introducing another macro and associated support code which doesn't
serve any purpose.

Joerg



More information about the llvm-commits mailing list