From edba4df4723d76662e5f624268f751ed5993f28b Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 2 Sep 2010 18:31:15 +0200 Subject: [PATCH] Log which precompiled header was found when detecting .gch --- ccache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccache.c b/ccache.c index fa2f10ef8..910c934da 100644 --- a/ccache.c +++ b/ccache.c @@ -1415,6 +1415,7 @@ cc_process_args(struct args *orig_args, struct args **preprocessor_args, /* Try to be smart about detecting precompiled headers */ pchpath = format("%s.gch", argv[i+1]); if (stat(pchpath, &st) == 0) { + cc_log("Detected use of precompiled header: %s", pchpath); found_pch = true; } @@ -1600,7 +1601,6 @@ cc_process_args(struct args *orig_args, struct args **preprocessor_args, args_add(*preprocessor_args, input_charset); } if (found_pch) { - cc_log("Use of precompiled header detected, adding -fpch-preprocess"); args_add(*preprocessor_args, "-fpch-preprocess"); } if (explicit_language) { -- 2.47.3