/* Arguments to send to the real compiler. */
ARGS *compiler_args;
- cc_log("=== CCACHE STARTED =========================================");
-
sloppiness = parse_sloppiness(getenv("CCACHE_SLOPPINESS"));
cc_log("Hostname: %s", get_hostname());
char *p;
char *program_name;
+ /* check for logging early so cc_log messages start working ASAP */
+ cache_logfile = getenv("CCACHE_LOGFILE");
+ cc_log("=== CCACHE STARTED =========================================");
+
/* the user might have set CCACHE_UMASK */
p = getenv("CCACHE_UMASK");
if (p) {
x_asprintf(&temp_dir, "%s/tmp", cache_dir);
}
- cache_logfile = getenv("CCACHE_LOGFILE");
-
base_dir = getenv("CCACHE_BASEDIR");
if (base_dir && base_dir[0] != '/') {
cc_log("Ignoring non-absolute base directory %s", base_dir);