1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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
This commit is contained in:
Bryan Drewery 2017-03-10 02:20:51 +00:00
parent 5926bdc0e1
commit 86e6bd934f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=435818

View File

@ -33,11 +33,11 @@ WARNING+= WITH_CCACHE_BUILD support disabled, please set CCACHE_DIR.
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}