pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler Added the user-settable variable CCACHE_DI...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d3c5775b7f67
branches: trunk
changeset: 520054:d3c5775b7f67
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Oct 14 08:59:08 2006 +0000
description:
Added the user-settable variable CCACHE_DIR, so that the cache can be
outside of WRKDIR. I don't see a reason for having the cache inside a
directory that will go away on "make clean", but I left the default
value as is.
diffstat:
mk/compiler/ccache.mk | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 484a9be7ecc4 -r d3c5775b7f67 mk/compiler/ccache.mk
--- a/mk/compiler/ccache.mk Sat Oct 14 08:39:33 2006 +0000
+++ b/mk/compiler/ccache.mk Sat Oct 14 08:59:08 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ccache.mk,v 1.27 2006/07/21 14:27:56 jlam Exp $
+# $NetBSD: ccache.mk,v 1.28 2006/10/14 08:59:08 rillig Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -35,11 +35,22 @@
# POSSIBILITY OF SUCH DAMAGE.
#
+# User-settable variables:
+#
+# CCACHE_DIR
+# The directory where the cached compiler results are stored. By
+# default, they are stored inside WRKDIR, so they are lost after
+# a "make clean".
+#
+
.if !defined(COMPILER_CCACHE_MK)
COMPILER_CCACHE_MK= defined
.include "../../mk/bsd.prefs.mk"
+# User-settable variables
+CCACHE_DIR?= ${WRKDIR}/.ccache
+
.if !empty(PKGPATH:Mdevel/ccache) || !empty(PKGPATH:Mdevel/patch)
IGNORE_CCACHE= yes
MAKEFLAGS+= IGNORE_CCACHE=yes
@@ -70,7 +81,7 @@
EVAL_PREFIX+= _CCACHEBASE=ccache
_CCACHEBASE_DEFAULT= ${LOCALBASE}
-_CCACHE_DIR= ${WRKDIR}/.ccache
+_CCACHE_DIR= ${CCACHE_DIR}
_CCACHE_VARS= # empty
. if !empty(_LANGUAGES.ccache:Mc)
PKG_CC?= ${CC}
Home |
Main Index |
Thread Index |
Old Index