From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 13 11:49:03 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 272188D8 for ; Wed, 13 Feb 2013 11:49:03 +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 D1028CD3 for ; Wed, 13 Feb 2013 11:49:02 +0000 (UTC) Received: from ds4.des.no (smtp.des.no [194.63.250.102]) by smtp-int.des.no (Postfix) with ESMTP id B67976A97 for ; Wed, 13 Feb 2013 11:48:55 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 7D544A36A; Wed, 13 Feb 2013 12:48:55 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: hackers@freebsd.org Subject: Turn on CLANG_IS_CC when not building gcc Date: Wed, 13 Feb 2013 12:48:55 +0100 Message-ID: <86wquc3048.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 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 11:49:03 -0000 The following patches (for head and stable/9) automatically enable CLANG_IS_CC if GCC is disabled but CLANG is not. Any objections? Index: head/share/mk/bsd.own.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- head/share/mk/bsd.own.mk (revision 246325) +++ head/share/mk/bsd.own.mk (working copy) @@ -526,6 +526,8 @@ MK_CLANG_EXTRAS:=3D no MK_CLANG_FULL:=3D no MK_CLANG_IS_CC:=3D no +.elif ${MK_GCC} =3D=3D "no" +MK_CLANG_IS_CC:=3D yes .endif =20 # Index: stable/9/share/mk/bsd.own.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stable/9/share/mk/bsd.own.mk (revision 244989) +++ stable/9/share/mk/bsd.own.mk (working copy) @@ -581,6 +581,8 @@ =20 .if ${MK_CLANG} =3D=3D "no" MK_CLANG_IS_CC:=3D no +.elif ${MK_GCC} =3D=3D "no" +MK_CLANG_IS_CC:=3D yes .endif =20 MK_LIBCPLUSPLUS?=3D no DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no