From: Lubos Lunak Date: Thu, 26 Jul 2012 12:45:16 +0000 (+0200) Subject: hash also Clang plugins X-Git-Tag: v3.1.8~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06be1c4cc33bf2def9c6e64483b397128f57dbe3;p=thirdparty%2Fccache.git hash also Clang plugins --- diff --git a/ccache.c b/ccache.c index 50b426041..738c022f3 100644 --- a/ccache.c +++ b/ccache.c @@ -972,6 +972,16 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode) continue; } + if (str_eq(args->argv[i], "-Xclang") + && i + 3 < args->argc + && str_eq(args->argv[i+1], "-load") + && str_eq(args->argv[i+2], "-Xclang") + && stat(args->argv[i+3], &st) == 0) { + hash_delimiter(hash, "plugin"); + hash_compiler(hash, &st, args->argv[i+3], false); + continue; + } + /* All other arguments are included in the hash. */ hash_delimiter(hash, "arg"); hash_string(hash, args->argv[i]);