From 7ef3b29b465b99a1af6616728b582f59fd477e16 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 9 Apr 2002 05:39:20 +0200 Subject: [PATCH] explicit handling of the --specs= option --- ccache.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ccache.c b/ccache.c index 509cb7f3c..416e85644 100644 --- a/ccache.c +++ b/ccache.c @@ -210,6 +210,14 @@ static void find_hash(ARGS *args) strncmp(args->argv[i], "-isystem", 8) == 0) { continue; } + + if (strncmp(args->argv[i], "--specs=", 8) == 0 && + stat(args->argv[i]+8, &st) == 0) { + /* if given a explicit specs file, then hash that file, but + don't include the path to it in the hash */ + hash_file(args->argv[i]+8); + continue; + } hash_string(args->argv[i]); } -- 2.47.3