From d53d4da65e5aed07d5ad8e67e1926844ce3d17d2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 23 Apr 2002 04:10:22 +0200 Subject: [PATCH] hash the input name if not using -g --- ccache.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.47.3