]>
Commit | Line | Data |
---|---|---|
5e21bae9 AF |
1 | diff -Naur ccache-3.0pre0.org/ccache.c ccache-3.0pre0/ccache.c |
2 | --- ccache-3.0pre0.org/ccache.c 2010-02-28 21:14:39.000000000 +0100 | |
3 | +++ ccache-3.0pre0/ccache.c 2010-03-22 08:08:43.000000000 +0100 | |
4 | @@ -849,12 +849,14 @@ | |
5 | ||
6 | compilercheck = getenv("CCACHE_COMPILERCHECK"); | |
7 | if (!compilercheck) { | |
8 | - compilercheck = "mtime"; | |
9 | + compilercheck = "size"; | |
10 | } | |
11 | if (strcmp(compilercheck, "none") == 0) { | |
12 | /* Do nothing. */ | |
13 | } else if (strcmp(compilercheck, "content") == 0) { | |
14 | hash_file(&hash, args->argv[0]); | |
15 | + } else if (strcmp(compilercheck, "size") == 0){ | |
16 | + hash_int(&hash, st.st_size); | |
17 | } else { /* mtime */ | |
18 | hash_int(&hash, st.st_size); | |
19 | hash_int(&hash, st.st_mtime); |