]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
hash the input name if not using -g
authorAndrew Tridgell <tridge@samba.org>
Tue, 23 Apr 2002 02:10:22 +0000 (04:10 +0200)
committerAndrew Tridgell <tridge@samba.org>
Tue, 23 Apr 2002 02:10:22 +0000 (04:10 +0200)
ccache.c

index aa5ab72fef1330b8b44cd21be151b0083391ba10..695a61482918f65c4cbc1c211ac0a756e5f52aaf 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -188,6 +188,12 @@ static void find_hash(ARGS *args)
 
        hash_start();
 
+       /* when we are doing the unifying tricks we need to include
+           the input file name in the hash to get the warnings right */
+       if (!found_debug) {
+               hash_string(input_file);
+       }
+
        /* first the arguments */
        for (i=1;i<args->argc;i++) {
                /* some arguments don't contribute to the hash. The