From: Joel Rosdahl Date: Thu, 5 Jan 2012 14:58:50 +0000 (+0100) Subject: Hash mtime or content of GCC plugins specified with -fplugin= X-Git-Tag: v3.1.7~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6802a3f6ca005138969a8badfa91abae2184de9f;p=thirdparty%2Fccache.git Hash mtime or content of GCC plugins specified with -fplugin= --- diff --git a/ccache.c b/ccache.c index cd9d08c09..0af8c0909 100644 --- a/ccache.c +++ b/ccache.c @@ -936,6 +936,13 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode) continue; } + if (str_startswith(args->argv[i], "-fplugin=") + && stat(args->argv[i] + 9, &st) == 0) { + hash_delimiter(hash, "plugin"); + hash_compiler(hash, &st, args->argv[i] + 9, false); + continue; + } + /* All other arguments are included in the hash. */ hash_delimiter(hash, "arg"); hash_string(hash, args->argv[i]);