From owner-freebsd-toolchain@freebsd.org Mon May 23 16:40:23 2016 Return-Path: Delivered-To: freebsd-toolchain@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 55207B47024 for ; Mon, 23 May 2016 16:40:23 +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 42356173C for ; Mon, 23 May 2016 16:40:23 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3D8C8B47022; Mon, 23 May 2016 16:40:23 +0000 (UTC) Delivered-To: toolchain@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 3D020B47020; Mon, 23 May 2016 16:40:23 +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 2F5AD1739; Mon, 23 May 2016 16:40:23 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 274341F73; Mon, 23 May 2016 16:40:23 +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 D49F91C459; Mon, 23 May 2016 16:40:22 +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 xId9nFujGyMG; Mon, 23 May 2016 16:40:20 +0000 (UTC) To: current@FreeBSD.org, toolchain@FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 538561C44C From: Bryan Drewery Subject: WITH_SYSTEM_COMPILER: Skip Clang/GCC bootstrap [Critical note for Toolchain changes] Organization: FreeBSD Message-ID: Date: Mon, 23 May 2016 09:40:17 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 16:40:23 -0000 In head is now the WITH_SYSTEM_COMPILER option. It is off-by-default for now but hopefully will be on-by-default relatively quickly. It will skip building the bootstrap Clang for buildworld/kernel-toolchain/universe if /usr/bin/cc matches the tree. It will also skip GCC if building for the same arch as the host system. The Clang/GCC-to-by-installed will be still be built though. See https://svnweb.freebsd.org/changeset/base/300354 for more details. A critical note to toolchain developers, or anyone who touches the Clang or GCC source files. If you modify these files or add a new target architecture into Clang, please bump the revision in the appropriate file= : Clang: lib/clang/include/clang/Basic/Version.inc FREEBSD_CC_VERSION GCC: gnu/usr.bin/cc/cc_tools/freebsd-native.h FBSD_CC_VER Still left todo: - Build one version of clang in universe if the WITH_SYSTEM_COMPILER logic does not pass. --=20 Regards, Bryan Drewery