Date: Wed, 13 Feb 2013 12:48:55 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: hackers@freebsd.org Subject: Turn on CLANG_IS_CC when not building gcc Message-ID: <86wquc3048.fsf@ds4.des.no>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86wquc3048.fsf>
