]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Log hostname and CWD before other logs
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Jun 2010 19:50:33 +0000 (21:50 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Jun 2010 19:50:33 +0000 (21:50 +0200)
ccache.c

index 9b822d352dff94d2ce559b1f35b1ed84a799577c..3ba22690aec2bc9dab6c3c042b7f1f883b0bcd6c 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1776,6 +1776,9 @@ static void ccache(int argc, char *argv[])
 
        sloppiness = parse_sloppiness(getenv("CCACHE_SLOPPINESS"));
 
+       cc_log("Hostname: %s", get_hostname());
+       cc_log("Working directory: %s", current_working_dir);
+
        if (base_dir) {
                cc_log("Base directory: %s", base_dir);
        }
@@ -1819,10 +1822,6 @@ static void ccache(int argc, char *argv[])
        process_args(orig_args->argc, orig_args->argv, &preprocessor_args,
                     &compiler_args);
 
-       cc_log("Hostname: %s", get_hostname());
-
-       cc_log("Cwd: %s", current_working_dir);
-
        cc_log("Source file: %s", input_file);
        if (generating_dependencies) {
                cc_log("Dependency file: %s", output_dep);