From: Joel Rosdahl Date: Sat, 19 Jun 2010 19:23:52 +0000 (+0200) Subject: Check CCACHE_DISABLED early X-Git-Tag: v3.0~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=793740e4901c3e5435c2bc6eec53adc399dd7c5e;p=thirdparty%2Fccache.git Check CCACHE_DISABLED early --- diff --git a/ccache.c b/ccache.c index 0638687fd..58bfdd5c3 100644 --- a/ccache.c +++ b/ccache.c @@ -1849,6 +1849,13 @@ static void ccache(int argc, char *argv[]) /* Arguments to send to the real compiler. */ ARGS *compiler_args; + find_compiler(argc, argv); + + if (getenv("CCACHE_DISABLE")) { + cc_log("ccache is disabled"); + failed(); + } + sloppiness = parse_sloppiness(getenv("CCACHE_SLOPPINESS")); cc_log("Hostname: %s", get_hostname()); @@ -1858,13 +1865,6 @@ static void ccache(int argc, char *argv[]) cc_log("Base directory: %s", base_dir); } - find_compiler(argc, argv); - - if (getenv("CCACHE_DISABLE")) { - cc_log("ccache is disabled"); - failed(); - } - if (getenv("CCACHE_UNIFY")) { cc_log("Unify mode disabled"); enable_unify = 1;