]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
config: Use disable from conf struct
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 16 Jul 2011 15:14:29 +0000 (17:14 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 20 Jul 2011 21:31:36 +0000 (23:31 +0200)
ccache.c

index df5bf63709b462d9d6611279e307521c7d9b05f6..4a66033c4fe2dfa5bcb2bc8ff1d020247f643d2b 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1954,17 +1954,17 @@ ccache(int argc, char *argv[])
 
        initialize();
 
+       if (conf->disable) {
+               cc_log("ccache is disabled");
+               failed();
+       }
+
        compile_preprocessed_source_code = !getenv("CCACHE_CPP2");
 
        setup_uncached_err();
 
        find_compiler(argc, argv);
 
-       if (getenv("CCACHE_DISABLE")) {
-               cc_log("ccache is disabled");
-               failed();
-       }
-
        sloppiness = parse_sloppiness(getenv("CCACHE_SLOPPINESS"));
 
        cc_log_argv("Command line: ", argv);