From 6802a3f6ca005138969a8badfa91abae2184de9f Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 5 Jan 2012 15:58:50 +0100 Subject: [PATCH] Hash mtime or content of GCC plugins specified with -fplugin= --- ccache.c | 7 +++++++ 1 file changed, 7 insertions(+) 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]); -- 2.47.2