aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ccache/files
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2010-11-18 02:41:35 +0800
committerEmanuel Haupt <ehaupt@FreeBSD.org>2010-11-18 02:41:35 +0800
commit5672b7a6d17116a5d879a6682487391c98d3be00 (patch)
tree134c0281255b3d502c51382782d9514b0f1ce3e7 /devel/ccache/files
parentadac021c923e9e914d2bffacaac8d81054792167 (diff)
downloadfreebsd-ports-gnome-5672b7a6d17116a5d879a6682487391c98d3be00.tar.gz
freebsd-ports-gnome-5672b7a6d17116a5d879a6682487391c98d3be00.tar.zst
freebsd-ports-gnome-5672b7a6d17116a5d879a6682487391c98d3be00.zip
Provide make.conf/src.conf instructions that still allow ccache to be used for
the lib32 bits in a buildworld. The recent committed fix would just revert to regular gcc. Submitted by: Rob Farmer <rfarmer@predatorlabs.net> (via cvs-all@)
Diffstat (limited to 'devel/ccache/files')
-rw-r--r--devel/ccache/files/ccache-howto-freebsd.txt.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/devel/ccache/files/ccache-howto-freebsd.txt.in b/devel/ccache/files/ccache-howto-freebsd.txt.in
index 74c44f6e6238..5d898333d471 100644
--- a/devel/ccache/files/ccache-howto-freebsd.txt.in
+++ b/devel/ccache/files/ccache-howto-freebsd.txt.in
@@ -4,12 +4,10 @@
To use ccache add the following to /etc/make.conf
-.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && !defined(NOCCACHE)
-.if !defined(CC) || ${CC} == "cc"
-CC=%%PREFIX%%/%%CCLINKDIR%%/world-cc
-.endif
-.if !defined(CXX) || ${CXX} == "c++"
-CXX=%%PREFIX%%/%%CCLINKDIR%%/world-c++
+.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
+.if !defined(NOCCACHE)
+CC:=${CC:C,^cc,%%PREFIX%%/%%CCLINKDIR%%/world-cc,1}
+CXX:=${CXX:C,^c\+\+,%%PREFIX%%/%%CCLINKDIR%%/world-c++,1}
.endif
.endif