From: Andrew Tridgell Date: Tue, 9 Apr 2002 03:39:20 +0000 (+0200) Subject: explicit handling of the --specs= option X-Git-Tag: v1.7~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ef3b29b465b99a1af6616728b582f59fd477e16;p=thirdparty%2Fccache.git explicit handling of the --specs= option --- 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]); }