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
6 compilercheck = getenv("CCACHE_COMPILERCHECK");
8 - compilercheck = "mtime";
9 + compilercheck = "size";
11 if (str_eq(compilercheck, "none")) {
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);