diff options
-rw-r--r-- | ccache.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1869,12 +1869,6 @@ from_cache(enum fromcache_call_mode mode, bool put_object_in_manifest) return; } - // Check if the diagnostic file is there. - if (output_dia && stat(cached_dia, &st) != 0) { - cc_log("Diagnostic file %s not in cache", cached_dia); - return; - } - // Occasionally, e.g. on hard reset, our cache ends up as just filesystem // meta-data with no content. Catch an easy case of this. if (st.st_size == 0) { @@ -1910,6 +1904,12 @@ from_cache(enum fromcache_call_mode mode, bool put_object_in_manifest) return; } + // Check if the diagnostic file is there. + if (output_dia && stat(cached_dia, &st) != 0) { + cc_log("Diagnostic file %s not in cache", cached_dia); + return; + } + // Copy object file from cache. Do so also for FissionDwarf file, cached_dwo, // when -gsplit-dwarf is specified. if (!str_eq(output_obj, "/dev/null")) { |