svn commit: r435818 - head/Mk
Bryan Drewery
bdrewery at FreeBSD.org
Fri Mar 10 02:20:52 UTC 2017
Author: bdrewery
Date: Fri Mar 10 02:20:51 2017
New Revision: 435818
URL: https://svnweb.freebsd.org/changeset/ports/435818
Log:
Allow overriding the ccache location with CCACHE_WRAPPER_PATH.
This is the same variable name as used in the base build from
bsd.compiler.mk.
With hat: portmgr
Modified:
head/Mk/bsd.ccache.mk
Modified: head/Mk/bsd.ccache.mk
==============================================================================
--- head/Mk/bsd.ccache.mk Fri Mar 10 02:05:01 2017 (r435817)
+++ head/Mk/bsd.ccache.mk Fri Mar 10 02:20:51 2017 (r435818)
@@ -33,11 +33,11 @@ WARNING+= WITH_CCACHE_BUILD support disa
BUILD_DEPENDS+= ${LOCALBASE}/bin/ccache:devel/ccache
. endif
-_CCACHE_PATH= ${LOCALBASE}/libexec/ccache
+CCACHE_WRAPPER_PATH?= ${LOCALBASE}/libexec/ccache
-.if exists(${_CCACHE_PATH})
+.if exists(${CCACHE_WRAPPER_PATH})
# Prepend the ccache dir into the PATH and setup ccache env
-PATH:= ${_CCACHE_PATH}:${PATH}
+PATH:= ${CCACHE_WRAPPER_PATH}:${PATH}
#.MAKEFLAGS: PATH=${PATH}
.if !${MAKE_ENV:MPATH=*} && !${CONFIGURE_ENV:MPATH=*}
MAKE_ENV+= PATH=${PATH}
More information about the svn-ports-all
mailing list