Mk: Document and simply user-modifiable ccache vars
PR: 242944
This commit is contained in:
parent
76eed7c913
commit
6b641f4eb4
1 changed files with 5 additions and 3 deletions
|
@ -3,7 +3,8 @@
|
|||
#
|
||||
# WITH_CCACHE_BUILD=yes enables depending on ccache and using it in the build.
|
||||
# NO_CCACHE_DEPEND will additionally not add the dependency on ccache.
|
||||
# NO_CCACHE will disable this entirely.
|
||||
# NO_CCACHE will disable using ccache entirely.
|
||||
# CCACHE_PREFIX is where ccache is already installed. Default: LOCALBASE
|
||||
|
||||
COMMANDS_Include_MAINTAINER= portmgr@FreeBSD.org
|
||||
|
||||
|
@ -36,8 +37,9 @@ WARNING+= WITH_CCACHE_BUILD support disabled, please set CCACHE_DIR.
|
|||
BUILD_DEPENDS+= ${LOCALBASE}/bin/ccache:devel/ccache
|
||||
. endif
|
||||
|
||||
CCACHE_WRAPPER_PATH?= ${LOCALBASE}/libexec/ccache
|
||||
CCACHE_BIN?= ${CCACHE_WRAPPER_PATH:C,/libexec/ccache$,,}/bin/ccache
|
||||
CCACHE_PREFIX?= ${LOCALBASE}
|
||||
CCACHE_WRAPPER_PATH?= ${CCACHE_PREFIX}/libexec/ccache
|
||||
CCACHE_BIN?= ${CCACHE_PREFIX}/bin/ccache
|
||||
|
||||
.if exists(${CCACHE_WRAPPER_PATH})
|
||||
# Prepend the ccache dir into the PATH and setup ccache env
|
||||
|
|
Loading…
Reference in a new issue