]> git.pld-linux.org Git - packages/ccache.git/blame - ccache-nohash_size_mtime.patch
- updated to 3.1.2
[packages/ccache.git] / ccache-nohash_size_mtime.patch
CommitLineData
79e0ddf2
AG
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 hash_file(hash, args->argv[0]);
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 { /* command string */
14 if (!hash_multicommand_output(hash, compilercheck, orig_args->argv[0])) {
15 fatal("Failure running compiler check command: %s", compilercheck);
This page took 0.086005 seconds and 4 git commands to generate.