Mk/bsd.ccache.mk: Use CCACHE_BIN in BUILD_DEPENDS
This commit is contained in:
parent
6b641f4eb4
commit
6b37107bea
1 changed files with 6 additions and 6 deletions
|
@ -31,16 +31,16 @@ WARNING+= WITH_CCACHE_BUILD support disabled, please set CCACHE_DIR.
|
|||
.if !defined(NO_CCACHE) && defined(WITH_CCACHE_BUILD) && !${CC:M*ccache*} && \
|
||||
!defined(NO_BUILD)
|
||||
|
||||
# Avoid depends loops between ccache and pkg
|
||||
. if !defined(NO_CCACHE_DEPEND) && \
|
||||
${PKGORIGIN} != ${PKG_ORIGIN}
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/ccache:devel/ccache
|
||||
. endif
|
||||
|
||||
CCACHE_PREFIX?= ${LOCALBASE}
|
||||
CCACHE_WRAPPER_PATH?= ${CCACHE_PREFIX}/libexec/ccache
|
||||
CCACHE_BIN?= ${CCACHE_PREFIX}/bin/ccache
|
||||
|
||||
# Avoid depends loops between ccache and pkg
|
||||
. if !defined(NO_CCACHE_DEPEND) && \
|
||||
${PKGORIGIN} != ${PKG_ORIGIN}
|
||||
BUILD_DEPENDS+= ${CCACHE_BIN}:devel/ccache
|
||||
. endif
|
||||
|
||||
.if exists(${CCACHE_WRAPPER_PATH})
|
||||
# Prepend the ccache dir into the PATH and setup ccache env
|
||||
PATH:= ${CCACHE_WRAPPER_PATH}:${PATH}
|
||||
|
|
Loading…
Reference in a new issue