[cfe-dev] FW: [PATCH] Driver modifications for cross compilation

Renato Golin rengolin at systemcall.org
Sat May 28 05:31:29 PDT 2011


On 28 May 2011 03:33, Joerg Sonnenberger <joerg at britannica.bec.de> wrote:
> Don't let yourself be confused by the name. It would actually be better
> to call it "-ccc-targte-triple", since that's what it is effectively
> about. It can be used for cross-compilation in combination with
> --sysroot, if you have a system image located somewhere.

Indeed, this is a topic discussed previously and we need to make the
distinction between host triple and target triple.

Furthermore, the -ccc-host-triple does not have the same effect than
"-cc1 -triple", which is yet-another way of setting host/target
options.

I don't mind setting the target triple manually and at the same time
specify cpu/fpu/etc as long as the behaviour is clear and we only have
one way of setting each.

In the past, when the same subject was discussed, the reason why we
have so many options was that Clang started as a wrapper for cc1 and
then became a full-fledged front-end with its own options but still
had (did it?) to support the old options. As with many other things in
LLVM, why not deprecate the redundant (and confusing) options? Is
there any strong reason to keep them (other than 'it'll break
builds')?

cheers,
--renato



More information about the cfe-dev mailing list