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>
index | next in thread | raw e-mail
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
===================================================================
--- head/share/mk/bsd.own.mk (revision 246325)
+++ head/share/mk/bsd.own.mk (working copy)
@@ -526,6 +526,8 @@
MK_CLANG_EXTRAS:= no
MK_CLANG_FULL:= no
MK_CLANG_IS_CC:= no
+.elif ${MK_GCC} == "no"
+MK_CLANG_IS_CC:= yes
.endif
#
Index: stable/9/share/mk/bsd.own.mk
===================================================================
--- stable/9/share/mk/bsd.own.mk (revision 244989)
+++ stable/9/share/mk/bsd.own.mk (working copy)
@@ -581,6 +581,8 @@
.if ${MK_CLANG} == "no"
MK_CLANG_IS_CC:= no
+.elif ${MK_GCC} == "no"
+MK_CLANG_IS_CC:= yes
.endif
MK_LIBCPLUSPLUS?= no
DES
--
Dag-Erling Smørgrav - des@des.no
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86wquc3048.fsf>
