improving bootstrapping of WITH_CLANG_IS_CC

Brooks Davis brooks at freebsd.org
Wed Sep 12 14:48:24 UTC 2012


On Wed, Sep 12, 2012 at 03:43:39AM -0500, Warner Losh wrote:
> 
> On Sep 10, 2012, at 4:56 PM, Brooks Davis wrote:
> > .if ${COMPILER_TYPE} != "clang"
> > 
> > I'd like to commit this in the next few days unless there are objections
> > requiring a major redesign.
> 
> Due to other $LIFE happening, I just scanned the patch, but I really like it.
> 
> I'd also propose a COMPILER_VERSION variable be reserved so that can be set so that variations in compiler versions can be comprehended in the tree to allow easier external toolchain support as well.  I have no impl for this yet, but just thought I'd put a bug in people's ear.

I think we'll likely want something like or a COMPILER_FEATURES
variable eventually.  For the moment I'm avoiding implementing it to
avoid the problems associated with generalizing from no examples.

One of the ideas we talked about at the devsummit was allowing external
toolchains to provide a makefile to drive things like CFLAGS for WARNS.
I think this would be a very good approach since it could allow a much
broader range of compilers without necessarily requiring FreeBSD
developers to know about all the possible variants.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-toolchain/attachments/20120912/f8d7566b/attachment.pgp


More information about the freebsd-toolchain mailing list