pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler Allow setting CCACHE_DIR in the environmen...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6a1741cbfebf
branches:  trunk
changeset: 469346:6a1741cbfebf
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Feb 22 12:31:10 2004 +0000

description:
Allow setting CCACHE_DIR in the environment or in /etc/mk.conf.

diffstat:

 mk/compiler/ccache.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r f3dbe391c9b5 -r 6a1741cbfebf mk/compiler/ccache.mk
--- a/mk/compiler/ccache.mk     Sun Feb 22 12:30:08 2004 +0000
+++ b/mk/compiler/ccache.mk     Sun Feb 22 12:31:10 2004 +0000
@@ -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_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}



Home | Main Index | Thread Index | Old Index