[cfe-dev] Fwd: Re: Small patches to allow fully independent clang/llvm/compiler-rt/libc++

Mario Werner via cfe-dev cfe-dev at lists.llvm.org
Thu Oct 15 05:51:25 PDT 2015


Sorry, forgot the list...

-------- Forwarded Message --------
Subject: Re: [cfe-dev] Small patches to allow fully independent
clang/llvm/compiler-rt/libc++
Date: Thu, 15 Oct 2015 14:50:11 +0200
From: Mario Werner <nioshd at gmail.com>
To: Renato Golin <renato.golin at linaro.org>

Maybe I am wrong but isn't this whole approach really similar to the
cross compiler config files [1] which Richard Pennington proposed last year?

If so it maybe possible to reuse his implementation from ellcc...

Regards,
Mario

[1] http://lists.llvm.org/pipermail/cfe-dev/2014-September/038986.html


On 10/15/2015 02:44 PM, Renato Golin via cfe-dev wrote:
> On 15 October 2015 at 13:30, Daniel Sanders <Daniel.Sanders at imgtec.com> wrote:
>> Just to restate this without the implementation detail: The triple would select a configuration file and that configuration file would inject the command line flags needed to get the right behaviour for that triple. We would then handle inconsistency in triples by changing the configuration files shipped in each distribution.
> 
> Yes. Just don't call it triple, because it really isn't.
> 
> $ clang --target mips-linux-gnu
> 
> That's a triple that Clang recognises...
> 
> $ clang --target weird-mips-linux-gnu
> 
> That's not. A modified Clang (in the future) would see this, bail on
> "unknown triple", and fall back to a configuration database, if
> exists.
> 
> If not, error out with "unknown triple".
> 
> This way we keep triples and configurations absolutely separate, which
> is a requirement to keep triples as legacy.
> 
> cheers,
> --renato
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> 





More information about the cfe-dev mailing list