From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 13 12:32:04 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B5A2F420; Wed, 13 Feb 2013 12:32:04 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 79E82EE7; Wed, 13 Feb 2013 12:32:04 +0000 (UTC) Received: from ds4.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id 8ABB46AF5; Wed, 13 Feb 2013 12:32:03 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 545E0A373; Wed, 13 Feb 2013 13:32:03 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Dimitry Andric Subject: Re: Turn on CLANG_IS_CC when not building gcc References: <86wquc3048.fsf@ds4.des.no> <511B7F37.4010409@FreeBSD.org> Date: Wed, 13 Feb 2013 13:32:03 +0100 In-Reply-To: <511B7F37.4010409@FreeBSD.org> (Dimitry Andric's message of "Wed, 13 Feb 2013 12:55:35 +0100") Message-ID: <86obfo2y4c.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 12:32:04 -0000 Dimitry Andric writes: > Dag-Erling Sm=C3=B8rgrav writes: > > The following patches (for head and stable/9) automatically enables > > CLANG_IS_CC if GCC is disabled but CLANG is not. Any objections? > This looks fine to me. Otherwise, if ${CC} isn't set to clang, > buildworld might fail in mysterious ways... :) Not mysterious at all - it fails while building xlint in the cross-tools phase because, while bsd.{lib,prog}.mk invoke the compiler as "clang" and not "cc", lint itself tries invokes "cc" to generate the lint libraries (/usr/libdata/lint/llib-l{posix,stdc}.ln). DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no