mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +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:
parent
5926bdc0e1
commit
86e6bd934f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=435818
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user