]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Move log "running preprocessor" to a more appropriate place
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 8 Aug 2012 20:43:20 +0000 (22:43 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 8 Aug 2012 20:43:20 +0000 (22:43 +0200)
ccache.c

index 612d5939a9e696350b4b2779e9fabc6315849ad4..ccb1299970f4062894b5f04a67edf7ae73de768a 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -820,6 +820,7 @@ get_object_name_from_cpp(struct args *args, struct mdfour *hash)
                /* run cpp on the input file to obtain the .i */
                args_add(args, "-E");
                args_add(args, input_file);
+               cc_log("Running preprocessor");
                status = execute(args->argv, path_stdout, path_stderr);
                args_pop(args, 2);
        } else {
@@ -2329,7 +2330,6 @@ ccache(int argc, char *argv[])
         * included_files.
         */
        cpp_hash = common_hash;
-       cc_log("Running preprocessor");
        object_hash = calculate_object_hash(preprocessor_args, &cpp_hash, 0);
        if (!object_hash) {
                fatal("internal error: object hash from cpp returned NULL");