From: Chris AtLee Date: Fri, 29 Jul 2011 20:55:55 +0000 (-0400) Subject: set output_to_real_object default to false, we get errors handling X-Git-Tag: v3.2~178^2~4^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1012fe9332b93d47c8b3aea4fd739b66697bd1af;p=thirdparty%2Fccache.git set output_to_real_object default to false, we get errors handling hardlinks --- diff --git a/ccache.c b/ccache.c index e3867bf83..2a34ded33 100644 --- a/ccache.c +++ b/ccache.c @@ -181,8 +181,7 @@ static bool compile_preprocessed_source_code; static bool output_is_precompiled_header = false; /* Whether we should output to the real object first before saving into cache */ -//static bool output_to_real_object_first = false; -static bool output_to_real_object_first = true; +static bool output_to_real_object_first = false; /* Profile generation / usage information */ static char* profile_dir = NULL; @@ -707,7 +706,7 @@ to_cache(struct args *args) if (output_to_real_object_first) { int ret; - if (getenv("CCACHE_HARDLINK")) { + if (getenv("CCACHE_HARDLINK") && !enable_compression) { ret = link(tmp_obj, cached_obj); } else { ret = copy_file(tmp_obj, cached_obj, enable_compression);