]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use CCACHE_COMPRESS to determine whether to compress the dependency file
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 8 Jun 2010 21:01:04 +0000 (23:01 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 8 Jun 2010 21:01:04 +0000 (23:01 +0200)
ccache.c

index 129f669e33437298e495d9aaf9c19ca70d07736b..d92fcadada648a3e90cd7c6ae1be63c275275b28 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1174,10 +1174,9 @@ static void from_cache(enum fromcache_call_mode mode, int put_object_in_manifest
 
        if (generating_dependencies && mode != FROMCACHE_DIRECT_MODE) {
                /* Store the dependency file in the cache. */
-               ret = copy_file(output_dep, cached_dep, 1);
+               ret = copy_file(output_dep, cached_dep, enable_compression);
                if (ret == -1) {
-                       cc_log("Failed to copy %s to %s", output_dep,
-                              cached_dep);
+                       cc_log("Failed to copy %s to %s", output_dep, cached_dep);
                        /* Continue despite the error. */
                } else {
                        cc_log("Stored in cache: %s", cached_dep);