View | Details | Raw Unified | Return to bug 246245
Collapse All | Expand All

(-)Mk/bsd.ccache.mk (+6 lines)
Lines 40-45 Link Here
40
CCACHE_WRAPPER_PATH?=	${LOCALBASE}/libexec/ccache
40
CCACHE_WRAPPER_PATH?=	${LOCALBASE}/libexec/ccache
41
CCACHE_BIN?=			${CCACHE_WRAPPER_PATH:C,/libexec/ccache$,,}/bin/ccache
41
CCACHE_BIN?=			${CCACHE_WRAPPER_PATH:C,/libexec/ccache$,,}/bin/ccache
42
42
43
# Make ccache more efficient.
44
# https://ccache.dev/manual/3.7.9.html#_compiling_in_different_directories
45
MAKE_ENV+=	CCACHE_BASEDIR="${WRKSRC}" CCACHE_NOHASHDIR=yes
46
CONFIGURE_ENV+=	CCACHE_BASEDIR="${WRKSRC}" CCACHE_NOHASHDIR=yes
47
CFLAGS+=	-fdebug-prefix-map=${WRKSRC}=.
48
43
.if exists(${CCACHE_WRAPPER_PATH})
49
.if exists(${CCACHE_WRAPPER_PATH})
44
# Prepend the ccache dir into the PATH and setup ccache env
50
# Prepend the ccache dir into the PATH and setup ccache env
45
PATH:=	${CCACHE_WRAPPER_PATH}:${PATH}
51
PATH:=	${CCACHE_WRAPPER_PATH}:${PATH}

Return to bug 246245