From: Joel Rosdahl Date: Tue, 8 Jun 2010 21:01:04 +0000 (+0200) Subject: Use CCACHE_COMPRESS to determine whether to compress the dependency file X-Git-Tag: v3.0~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4de68ec9b7f04de790f876cf8358674c22961631;p=thirdparty%2Fccache.git Use CCACHE_COMPRESS to determine whether to compress the dependency file --- diff --git a/ccache.c b/ccache.c index 129f669e3..d92fcadad 100644 --- 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);