From: Andrew Tridgell Date: Tue, 23 Apr 2002 02:10:22 +0000 (+0200) Subject: hash the input name if not using -g X-Git-Tag: v1.8~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d53d4da65e5aed07d5ad8e67e1926844ce3d17d2;p=thirdparty%2Fccache.git hash the input name if not using -g --- diff --git a/ccache.c b/ccache.c index aa5ab72fe..695a61482 100644 --- 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;iargc;i++) { /* some arguments don't contribute to the hash. The