diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2012-02-20 23:16:25 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2012-02-20 23:16:25 +0100 |
commit | 4870af9422e00b272ad129df72166d4f3ba4268b (patch) | |
tree | d1354fc1a281b01539c3944465fe92ced424b2bb /ccache.c | |
parent | 534e723f0d90a0b0a64ad268d398a91561520b78 (diff) | |
parent | 5efb007aeaee8974802cc99b8f8a6bf88f5f7a81 (diff) | |
download | ccache-4870af9422e00b272ad129df72166d4f3ba4268b.tar.gz |
Merge branch 'master' into config
* master:
Minor code style changes
Support adjusting the compression level through CCACHE_COMPRESS_LEVEL
Conflicts:
MANUAL.txt
ccache.c
Diffstat (limited to 'ccache.c')
-rw-r--r-- | ccache.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -675,8 +675,9 @@ to_cache(struct args *args) failed(); } if (st.st_size > 0) { - if (move_uncompressed_file(tmp_stderr, cached_stderr, - conf->compression) != 0) { + if (move_uncompressed_file( + tmp_stderr, cached_stderr, + conf->compression ? conf->compression_level : 0) != 0) { cc_log("Failed to move %s to %s: %s", tmp_stderr, cached_stderr, strerror(errno)); stats_update(STATS_ERROR); @@ -704,7 +705,9 @@ to_cache(struct args *args) stats_update(STATS_ERROR); failed(); } - } else if (move_uncompressed_file(tmp_obj, cached_obj, conf->compression) != 0) { + } else if (move_uncompressed_file( + tmp_obj, cached_obj, + conf->compression ? conf->compression_level : 0) != 0) { cc_log("Failed to move %s to %s: %s", tmp_obj, cached_obj, strerror(errno)); stats_update(STATS_ERROR); failed(); |