summaryrefslogtreecommitdiff
path: root/devel/ccache/files/patch-ccache.c
diff options
context:
space:
mode:
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);
+ }