Date: Fri, 11 Jun 2010 15:18:02 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: dougb@FreeBSD.org Cc: freebsd-current@FreeBSD.org, ed@80386.nl, andreast-list@fgznet.ch Subject: Re: How to disable CLANG & co build in buildworld? Message-ID: <20100611.151802.59640143227153045.imp@bsdimp.com> In-Reply-To: <4C129ECE.8040709@FreeBSD.org> References: <20100611.132052.271446115462387749.imp@bsdimp.com> <20100611203544.GA1797@hoeg.nl> <4C129ECE.8040709@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <4C129ECE.8040709@FreeBSD.org> Doug Barton <dougb@FreeBSD.org> writes: : On 06/11/10 13:35, Ed Schouten wrote: : > * M. Warner Losh<imp@bsdimp.com> wrote: : >> Except that clang isn't quite disabled when cross-building, due to the : >> issue I pointed out when the commit went in wrt bsd.own.mk. : >> MACHINE_ARCH is still amd64 until we start to build the sparc64 : >> binaries, so anything in the bootstrapping part of the build will not : >> be disabled. that's one of many reasons disabling things in : >> bsd.own.mk based on architecture is going to fail. : > : > Exactly. I already mentioned this problem on arch@ back in May. That's : > why a small portion of LLVM, namely tblgen, is always built. Even : > though : > this will slightly increase the build time, it shouldn't be excessive. : > If someone knows of a nice way to fix this, I am more than willing to : > get it fixed. Ed: Sorry I missed it back in may on arch@. I'm usually pretty good about catching things like that... : What is "this" that needs to be fixed? Or, asked another way, why are : we not optimizing for the common case (building world on the machine : that it will be run on)? "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. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100611.151802.59640143227153045.imp>