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

index f6bf79b2084cd6412fdf558b6ddf405dd278f28c..0deaaf42b02743723c3d178c269a0263a9cb1bc0 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -899,7 +899,7 @@ calculate_common_hash(struct args *args, struct mdfour *hash)
        hash_string(hash, basename(args->argv[0]));
 
        /* Possibly hash the current working directory. */
-       if (getenv("CCACHE_HASHDIR")) {
+       if (conf->hash_dir) {
                char *cwd = gnu_getcwd();
                if (cwd) {
                        hash_delimiter(hash, "cwd");