From owner-freebsd-current@FreeBSD.ORG Sat Jun 12 20:59:47 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD94B1065670 for ; Sat, 12 Jun 2010 20:59:47 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5368FC14 for ; Sat, 12 Jun 2010 20:59:47 +0000 (UTC) Received: (qmail 6671 invoked by uid 399); 12 Jun 2010 20:59:45 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 12 Jun 2010 20:59:45 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4C13F53F.3050106@FreeBSD.org> Date: Sat, 12 Jun 2010 13:59:43 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: "M. Warner Losh" References: <4C129ECE.8040709@FreeBSD.org> <20100611.151802.59640143227153045.imp@bsdimp.com> <4C1315F9.6000300@FreeBSD.org> <20100612.091058.242248466057850673.imp@bsdimp.com> In-Reply-To: <20100612.091058.242248466057850673.imp@bsdimp.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ed@80386.nl, andreast-list@fgznet.ch, freebsd-current@freebsd.org Subject: Re: How to disable CLANG & co build in buildworld? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2010 20:59:47 -0000 On 06/12/10 08:10, M. Warner Losh wrote: > In message:<4C1315F9.6000300@FreeBSD.org> > Doug Barton writes: > : On 06/11/10 14:18, M. Warner Losh wrote: > :> "This" is building the proper set of tools for the target. It is easy > :> to do, and only a couple lines of Makefile foo in Makefile.inc1 > :> instead of in bsd.own.mk. It is a fairly natural consequence of the > :> tbemd stuff I have been working on and have started merging. > :> > :> The consequences today are that you build some extra tools that are > :> only needed to build clang when in fact you aren't really going to be > :> building clang. The "cost" is however long it takes to do this on the > :> platform you are building on. This can range from a minute or two to > :> tens of minutes depending on the power of your build system. > : > : Ok, obviously I'm dense because I didn't understand an answer to my > : question anywhere in there. :) So let me try again. Why are we not > : optimizing for the common case, where the world is built on the system > : it's going to run on, which means that WITHOUT_CLANG can easily mean > : exactly that? > > Because if we optimize for that case, we break the other cases. > Broken trumps fast, so we always build the clang tools. > > The reason it is broke is that the default for clang varies between > architectures, which makes the usual tests for MK_CLANG not work for > the bootstrap tools phase. Sorry, still dense here. Can you point to code where simply testing for MK_CLANG won't work? Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/