|
|
|
@ -19,25 +19,16 @@ |
|
|
|
|
|
|
|
--- ./ccache.c.orig Mon Feb 17 01:11:58 2003
|
|
|
|
+++ ./ccache.c Tue Feb 18 20:10:52 2003
|
|
|
|
@@ -290,13 +290,15 @@
|
|
|
|
@@ -331,8 +331,10 @@
|
|
|
|
hash_string(str_basename(args->argv[0])); |
|
|
|
} |
|
|
|
|
|
|
|
/* the compiler driver size and date. This is a simple minded way |
|
|
|
to try and detect compiler upgrades. It is not 100% reliable */ |
|
|
|
- if (stat(args->argv[0], &st) != 0) {
|
|
|
|
- cc_log("Couldn't stat the compiler!? (argv[0]='%s')\n", args->argv[0]);
|
|
|
|
- stats_update(STATS_COMPILER);
|
|
|
|
- failed();
|
|
|
|
- hash_int(st.st_size);
|
|
|
|
- hash_int(st.st_mtime);
|
|
|
|
+ if (!getenv("CCACHE_DONT_STAT_COMPILER")) {
|
|
|
|
+ if (stat(args->argv[0], &st) != 0) {
|
|
|
|
+ cc_log("Couldn't stat the compiler!? (argv[0]='%s')\n", args->argv[0]);
|
|
|
|
+ stats_update(STATS_COMPILER);
|
|
|
|
+ failed();
|
|
|
|
+ }
|
|
|
|
+ hash_int(st.st_size);
|
|
|
|
+ hash_int(st.st_mtime);
|
|
|
|
} |
|
|
|
- hash_int(st.st_size);
|
|
|
|
- hash_int(st.st_mtime);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/* possibly hash the current working directory */ |
|
|
|
if (getenv("CCACHE_HASHDIR")) { |