]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/ccache-3.1.6-no_compiler_mtime.patch
kernel: add arm (versatile and kirkwood) cfg for 3.2.x.
[people/teissler/ipfire-2.x.git] / src / patches / ccache-3.1.6-no_compiler_mtime.patch
1 diff -Naur ccache-3.1.org/ccache.c ccache-3.1/ccache.c
2 --- ccache-3.1.org/ccache.c 2010-09-16 19:01:09.000000000 +0200
3 +++ ccache-3.1/ccache.c 2010-10-21 21:41:08.000000000 +0200
4 @@ -805,13 +805,16 @@
5 */
6 compilercheck = getenv("CCACHE_COMPILERCHECK");
7 if (!compilercheck) {
8 - compilercheck = "mtime";
9 + compilercheck = "size";
10 }
11 if (str_eq(compilercheck, "none")) {
12 /* Do nothing. */
13 } else if (str_eq(compilercheck, "content")) {
14 hash_delimiter(hash, "cc_content");
15 hash_file(hash, args->argv[0]);
16 + } else if (str_eq(compilercheck, "size")) {
17 + hash_delimiter(hash, "cc_size");
18 + hash_int(hash, st.st_size);
19 } else if (str_eq(compilercheck, "mtime")) {
20 hash_delimiter(hash, "cc_mtime");
21 hash_int(hash, st.st_size);