Check CCACHE_DISABLED early

This commit is contained in:
Joel Rosdahl 2010-06-19 21:23:52 +02:00
parent 76b132d70c
commit 793740e490

View File

@ -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;