mirror of
https://github.com/reactos/ccache.git
synced 2025-01-21 10:56:24 +00:00
Check CCACHE_DISABLED early
This commit is contained in:
parent
76b132d70c
commit
793740e490
14
ccache.c
14
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user