summaryrefslogtreecommitdiff
path: root/mk/compiler/ccache.mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-12 08:54:48 +0000
committerjlam <jlam>2004-02-12 08:54:48 +0000
commit18ee77b9357ace4994aa7c5d185efc5999cec921 (patch)
tree9b431947dc1b952aaa3bd5800cea32e48bb58c10 /mk/compiler/ccache.mk
parentee4087479e4c1584553dc472a154033652d2dfd3 (diff)
downloadpkgsrc-18ee77b9357ace4994aa7c5d185efc5999cec921.tar.gz
Generate a more informative string "CC_VERSION_STRING" that is passed to
ccache as the compiler information to hash.
Diffstat (limited to 'mk/compiler/ccache.mk')
-rw-r--r--mk/compiler/ccache.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/compiler/ccache.mk b/mk/compiler/ccache.mk
index 29edc517dcd..c8595701653 100644
--- a/mk/compiler/ccache.mk
+++ b/mk/compiler/ccache.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ccache.mk,v 1.13 2004/02/09 01:29:29 jlam Exp $
+# $NetBSD: ccache.mk,v 1.14 2004/02/12 08:54:48 jlam Exp $
.if !defined(COMPILER_CCACHE_MK)
COMPILER_CCACHE_MK= one
@@ -72,6 +72,12 @@ PATH:= ${_CCACHE_DIR}/bin:${PATH}
# Add the dependency on ccache.
BUILD_DEPENDS+= ccache-[0-9]*:../../devel/ccache
+# Override the compiler-specific hash with the version string for the
+# compiler.
+#
+CONFIGURE_ENV+= CCACHE_HASHCC=${CC_VERSION_STRING:Q}
+MAKE_ENV+= CCACHE_HASHCC=${CC_VERSION_STRING:Q}
+
# Create symlinks for the compiler into ${WRKDIR}.
. if exists(${_CCACHEBASE}/bin/ccache)
. for _target_ in ${_CCACHE_LINKS}