diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-12 08:54:48 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-12 08:54:48 +0000 |
commit | a854f1222e2650031e39c0ef7afb8c3e49511eb6 (patch) | |
tree | 9b431947dc1b952aaa3bd5800cea32e48bb58c10 /mk/compiler/ccache.mk | |
parent | 135989c99c0480d7c6eedb659c709fc32a03c976 (diff) | |
download | pkgsrc-a854f1222e2650031e39c0ef7afb8c3e49511eb6.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.mk | 8 |
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} |