aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-08-01 18:26:20 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-08-01 18:26:20 +0000
commit91234af7d8e885c5293c4d40249d7c26816f82c0 (patch)
tree3aacce34cf1c91b650cd3003ac8bf43edc0c5edb /share
parent550bff8dfc86051239a52f55942b9c1930d9a06c (diff)
Notes
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.compiler.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.compiler.mk b/share/mk/bsd.compiler.mk
index 4c0029418c77..499f31e4929e 100644
--- a/share/mk/bsd.compiler.mk
+++ b/share/mk/bsd.compiler.mk
@@ -82,8 +82,11 @@ PATH:= ${PATH:C,:?${CCACHE_WRAPPER_PATH}(/world)?(:$)?,,g}
${var}:= ${CCACHE_BIN} ${${var}}
.endif
.endfor
-.elif empty(PATH:M*${CCACHE_WRAPPER_PATH}*)
+.else
+# Need to ensure CCACHE_WRAPPER_PATH is the first in ${PATH}
+PATH:= ${PATH:C,:?${CCACHE_WRAPPER_PATH}(/world)?(:$)?,,g}
PATH:= ${CCACHE_WRAPPER_PATH}:${PATH}
+CCACHE_WRAPPER_PATH_PFX= ${CCACHE_WRAPPER_PATH}:
.endif # ${CCACHE_BUILD_TYPE} == "command"
# GCC does not need the CCACHE_CPP2 hack enabled by default in devel/ccache.
# The port enables it due to ccache passing preprocessed C to clang