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

index 4dfe9f21dee2b75be7843f70ac833bb08f05f31b..f2205a16133f90b9d7d77a04e5e979403c784182 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1030,7 +1030,7 @@ from_cache(enum fromcache_call_mode mode, bool put_object_in_manifest)
        bool produce_dep_file;
 
        /* the user might be disabling cache hits */
-       if (mode != FROMCACHE_COMPILED_MODE && getenv("CCACHE_RECACHE")) {
+       if (mode != FROMCACHE_COMPILED_MODE && conf->recache) {
                return;
        }