From 3a6f19de48366a616eaffd9dd6c4d4712e0b6c27 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 11 Mar 2019 10:26:08 -0400 Subject: stage1 caching system: detect problematic mtimes closes #2045 --- src/compiler.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/compiler.cpp') diff --git a/src/compiler.cpp b/src/compiler.cpp index fa153aa2d8..7ec1485fad 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -75,8 +75,10 @@ Error get_compiler_id(Buf **result) { cache_file(ch, &self_exe_path); buf_resize(&saved_compiler_id, 0); - if ((err = cache_hit(ch, &saved_compiler_id))) - return err; + if ((err = cache_hit(ch, &saved_compiler_id))) { + if (err != ErrorInvalidFormat) + return err; + } if (buf_len(&saved_compiler_id) != 0) { cache_release(ch); *result = &saved_compiler_id; -- cgit v1.2.3