]> git.pld-linux.org Git - packages/ccache.git/blob - ccache-nohash_size_mtime.patch
b28550a4845728068d36e60f25d452bb51531a46
[packages/ccache.git] / ccache-nohash_size_mtime.patch
1 --- ccache-3.1/ccache.c~        2010-09-16 19:01:09.000000000 +0200
2 +++ ccache-3.1/ccache.c 2010-10-02 18:16:57.670019849 +0200
3 @@ -814,8 +814,10 @@
4                 /* Do nothing. */
5         } else if (str_eq(compilercheck, "mtime")) {
6                 hash_delimiter(hash, "cc_mtime");
7 -               hash_int(hash, st->st_size);
8 -               hash_int(hash, st->st_mtime);
9 +               if (!getenv("CCACHE_NOHASH_SIZE_MTIME")) {
10 +                       hash_int(hash, st->st_size);
11 +                       hash_int(hash, st->st_mtime);
12 +               }
13         } else if (str_eq(compilercheck, "content") || !allow_command) {
14                 hash_delimiter(hash, "cc_content");
15                 hash_file(hash, path);
This page took 0.01909 seconds and 2 git commands to generate.