diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-22 12:31:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-22 12:31:10 +0000 |
commit | 911e6a09918ec99007e116b9ba6d1d4f5eae192c (patch) | |
tree | 6ccfb26b2d69e501e89f8c31d89a1914a8093bd6 /mk/compiler | |
parent | f948c8ba18b9b237977aee6f1ddb67205712c480 (diff) | |
download | pkgsrc-911e6a09918ec99007e116b9ba6d1d4f5eae192c.tar.gz |
Allow setting CCACHE_DIR in the environment or in /etc/mk.conf.
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/ccache.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/compiler/ccache.mk b/mk/compiler/ccache.mk index a490ecc4f36..978338d90fd 100644 --- a/mk/compiler/ccache.mk +++ b/mk/compiler/ccache.mk @@ -1,4 +1,4 @@ -# $NetBSD: ccache.mk,v 1.16 2004/02/21 12:31:38 jlam Exp $ +# $NetBSD: ccache.mk,v 1.17 2004/02/22 12:31:10 jlam Exp $ .if !defined(COMPILER_CCACHE_MK) COMPILER_CCACHE_MK= defined @@ -66,6 +66,10 @@ BUILD_DEPENDS+= ccache-[0-9]*:../../devel/ccache # BUILD_ENV+= CCACHE_HASHCC=${CC_VERSION_STRING:Q} +.if defined(CCACHE_DIR) && !empty(CCACHE_DIR) +BUILD_ENV+= CCACHE_DIR=${CCACHE_DIR:Q} +.endif + # Create symlinks for the compiler into ${WRKDIR}. . if exists(${_CCACHEBASE}/bin/ccache) . for _target_ in ${_CCACHE_LINKS} |