]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
set output_to_real_object default to false, we get errors handling
authorChris AtLee <catlee@mozilla.com>
Fri, 29 Jul 2011 20:55:55 +0000 (16:55 -0400)
committerChris AtLee <catlee@mozilla.com>
Fri, 29 Jul 2011 20:55:55 +0000 (16:55 -0400)
hardlinks

ccache.c

index e3867bf831011a1e982e405158798087de41ed90..2a34ded33388378add4f5df64a0fc794f122108e 100644 (file)
--- 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);