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

Renato Golin via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 14 07:15:19 PDT 2015


On 14 October 2015 at 14:47, Jonathan Roelofs <jonathan at codesourcery.com> wrote:
> Something along these ^ lines is the "correct" way to do it. You'd have to
> add your own vendor to Triple.h, and then specialize these defaults based on
> seeing that particular vendor.  Baking these decisions in at compile-time is
> an anti-pattern driver-wise.

Hum, I like this better!

Not that I like Triples, but I think this is the right way to go.
We'll probably find a lot of problems when integrating it with
distributions and systems, but it's a decision that makes sense from
this premature point of view.


> If you do it this way, then you'll be able to write testcases for your
> changes, and those tests will get run by all the buildbots (not just one
> configured to have one particular set of defaults).  This has the added
> benefit of not requiring more builders to test more configurations.

Good point. We suffer from that problem in GCC validation.

--renato



More information about the cfe-dev mailing list