]> git.pld-linux.org Git - packages/ccache.git/commitdiff
- add support to turn off hasing the compiler size and mtime via a
authortwittner <twittner@pld-linux.org>
Mon, 26 Dec 2005 07:17:57 +0000 (07:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  enviroment variable CCACHE_NOHASH_SIZE_MTIME (from FreeBSD cvs)
  http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/ccache/files/patch-ccache.c?rev=1.1&content-type=text/x-cvsweb-markup

Changed files:
    ccache-nohash_size_mtime.patch -> 1.1

ccache-nohash_size_mtime.patch [new file with mode: 0644]

diff --git a/ccache-nohash_size_mtime.patch b/ccache-nohash_size_mtime.patch
new file mode 100644 (file)
index 0000000..28901a7
--- /dev/null
@@ -0,0 +1,34 @@
+--- ccache.1.orig      Mon Sep 13 06:38:30 2004
++++ ccache.1   Tue Nov 15 14:59:46 2005
+@@ -234,6 +234,16 @@
+ incorrect setting of this debug info rarely causes problems\&. If you
+ strike problems with gdb not using the correct directory then enable
+ this option\&.
++.IP
++.IP "\fBCCACHE_NOHASH_SIZE_MTIME\fP"
++This tells ccache to not hash the real compiler's size and modification
++time. Normally this is the mechanism to detect compiler upgrades.
++There are situations however, where even though the compiler's size or
++modification time has changed you can safely use the cached objects
++(e.g. if as part of your build system the compiler is built as well
++and the compiler's source has not changed; or if the compiler has only
++changes that do not affect code generation). Use this feature only if
++you know what you are doing.
+ .IP 
+ .IP "\fBCCACHE_UNIFY\fP" 
+ If you set the environment variable CCACHE_UNIFY
+--- ccache.c.orig      Mon Sep 13 06:38:30 2004
++++ ccache.c   Tue Nov 15 14:59:46 2005
+@@ -331,8 +331,10 @@
+               hash_string(str_basename(args->argv[0]));
+       }
+-      hash_int(st.st_size);
+-      hash_int(st.st_mtime);
++      if (!getenv("CCACHE_NOHASH_SIZE_MTIME")) {
++              hash_int(st.st_size);
++              hash_int(st.st_mtime);
++      }
+       /* possibly hash the current working directory */
+       if (getenv("CCACHE_HASHDIR")) {
This page took 0.105597 seconds and 4 git commands to generate.