From owner-freebsd-current@FreeBSD.ORG Sat Jun 12 15:15:17 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 1CCB0106566C; Sat, 12 Jun 2010 15:15:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id D2F208FC15; Sat, 12 Jun 2010 15:15:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o5CFAuRv009528; Sat, 12 Jun 2010 09:10:56 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 12 Jun 2010 09:10:58 -0600 (MDT) Message-Id: <20100612.091058.242248466057850673.imp@bsdimp.com> To: dougb@freebsd.org From: "M. Warner Losh" In-Reply-To: <4C1315F9.6000300@FreeBSD.org> References: <4C129ECE.8040709@FreeBSD.org> <20100611.151802.59640143227153045.imp@bsdimp.com> <4C1315F9.6000300@FreeBSD.org> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii 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 15:15:17 -0000 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. Warner