summaryrefslogtreecommitdiff
path: root/devel/ccache/files/patch-ccache.c
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2006-03-21 15:06:15 +0000
committerAlex Dupre <ale@FreeBSD.org>2006-03-21 15:06:15 +0000
commit4fbf6452a68e60c78f9787e06d2400713e2bbf9f (patch)
tree73933a032620c30844b3cf0f159c521c5e586c25 /devel/ccache/files/patch-ccache.c
parentmake gdbm chooseable (OPTIONS) (diff)
- Add CCACHE_CACHE_COMPILER patch
- Improve examples - Add two new scripts to enhance buildworld/buildkernel ccache may now be used safely and effectively to build the FreeBSD source tree. Follow the pkg-message tips to exploit it. Approved by: maintainer
Notes
Notes: svn path=/head/; revision=157883
Diffstat (limited to 'devel/ccache/files/patch-ccache.c')
-rw-r--r--devel/ccache/files/patch-ccache.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/devel/ccache/files/patch-ccache.c b/devel/ccache/files/patch-ccache.c
index 7ee069ace02b..caba042f50c0 100644
--- a/devel/ccache/files/patch-ccache.c
+++ b/devel/ccache/files/patch-ccache.c
@@ -1,12 +1,14 @@
---- ccache.c.orig Mon Sep 13 06:38:30 2004
-+++ ccache.c Tue Nov 15 14:59:46 2005
-@@ -331,8 +331,10 @@
+--- ccache.c.orig 2004/09/13 10:19:06 1.96
++++ ccache.c 2005/11/24 21:54:09 1.98
+@@ -331,8 +331,12 @@
hash_string(str_basename(args->argv[0]));
}
- hash_int(st.st_size);
- hash_int(st.st_mtime);
-+ if (!getenv("CCACHE_NOHASH_SIZE_MTIME")) {
++ if (getenv("CCACHE_HASH_COMPILER")) {
++ hash_file(args->argv[0]);
++ } else if (!getenv("CCACHE_NOHASH_SIZE_MTIME")) {
+ hash_int(st.st_size);
+ hash_int(st.st_mtime);
+ }