]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
explicit handling of the --specs= option
authorAndrew Tridgell <tridge@samba.org>
Tue, 9 Apr 2002 03:39:20 +0000 (05:39 +0200)
committerAndrew Tridgell <tridge@samba.org>
Tue, 9 Apr 2002 03:39:20 +0000 (05:39 +0200)
ccache.c

index 509cb7f3c1c4a188dbc487fdad8dd5a7b18e224e..416e85644c4758b2aa28714bde620baddf4a68f5 100644 (file)
--- 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]);
        }