From owner-freebsd-current@freebsd.org Thu Oct 15 15:37:02 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EFB62A15603 for ; Thu, 15 Oct 2015 15:37:02 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D72291506 for ; Thu, 15 Oct 2015 15:37:02 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id D4731A15602; Thu, 15 Oct 2015 15:37:02 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D414EA15601 for ; Thu, 15 Oct 2015 15:37:02 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C2DA31505 for ; Thu, 15 Oct 2015 15:37:02 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id BC540134A for ; Thu, 15 Oct 2015 15:37:02 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 7B76410827 for ; Thu, 15 Oct 2015 15:37:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id fMAu41Wdz7La for ; Thu, 15 Oct 2015 15:36:59 +0000 (UTC) To: current@FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 5EFEC1081A From: Bryan Drewery Subject: [CFT] Buildworld ccache support Organization: FreeBSD Message-ID: <561FC81B.1090309@FreeBSD.org> Date: Thu, 15 Oct 2015 08:36:59 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Thu, 15 Oct 2015 15:37:03 -0000 Hi, If you are interested in using ccache in buildworld please consider using this patch locally and giving me some feedback. The current advice for ccache+buildworld (the CC:= trick in make.conf) actually results in the build thinking you are using a cross-compiler which results in unintended side-effects. It also doesn't work with meta mode as it handles CC and toolchain differently. This patch intends to cover all cases. https://people.freebsd.org/~bdrewery/patches/world-ccache.diff To use just set WITH_CCACHE_BUILD= in src.conf or make.conf. I purposely matched it to the same as the ports build. Thanks! -- Regards, Bryan Drewery