From: Sam Gross Date: Tue, 1 Nov 2016 17:45:26 +0000 (-0700) Subject: Hash '-ccbin' argument X-Git-Tag: v3.4~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09542b00044ede785a5ebe847d2a19ad99f964ab;p=thirdparty%2Fccache.git Hash '-ccbin' argument --- diff --git a/ccache.c b/ccache.c index 22a76cf39..cecf86a37 100644 --- a/ccache.c +++ b/ccache.c @@ -1743,6 +1743,16 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode) continue; } + if ((str_eq(args->argv[i], "-ccbin") + || str_eq(args->argv[i], "--compiler-bindir")) + && i + 1 < args->argc + && x_stat(args->argv[i+1], &st) == 0) { + hash_delimiter(hash, "ccbin"); + hash_compiler(hash, &st, args->argv[i+1], false); + i++; + continue; + } + // All other arguments are included in the hash. hash_delimiter(hash, "arg"); hash_string(hash, args->argv[i]);