]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Log which precompiled header was found when detecting .gch
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 2 Sep 2010 16:31:15 +0000 (18:31 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 2 Sep 2010 16:31:15 +0000 (18:31 +0200)
ccache.c

index fa2f10ef89638de7a68ae10a94f5f01ddba6ff2c..910c934daac6b64ccfe1228409256fe1ff135e9e 100644 (file)
--- 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) {