aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-11 10:26:08 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-11 10:26:08 -0400
commit3a6f19de48366a616eaffd9dd6c4d4712e0b6c27 (patch)
tree60e0f7451f1dc6ac03153e0b3471f171825f35e3 /src/ir.cpp
parentfec4555476e38d2eeb1dfb02572404b243acd0b2 (diff)
downloadzig-3a6f19de48366a616eaffd9dd6c4d4712e0b6c27.tar.gz
zig-3a6f19de48366a616eaffd9dd6c4d4712e0b6c27.zip
stage1 caching system: detect problematic mtimes
closes #2045
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index a8771285f6..bd5944d922 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -18734,8 +18734,10 @@ static IrInstruction *ir_analyze_instruction_c_import(IrAnalyze *ira, IrInstruct
Buf tmp_c_file_digest = BUF_INIT;
buf_resize(&tmp_c_file_digest, 0);
if ((err = cache_hit(cache_hash, &tmp_c_file_digest))) {
- ir_add_error_node(ira, node, buf_sprintf("C import failed: unable to check cache: %s", err_str(err)));
- return ira->codegen->invalid_instruction;
+ if (err != ErrorInvalidFormat) {
+ ir_add_error_node(ira, node, buf_sprintf("C import failed: unable to check cache: %s", err_str(err)));
+ return ira->codegen->invalid_instruction;
+ }
}
ira->codegen->caches_to_release.append(cache_hash);