stage1 caching system: detect problematic mtimes

closes #2045
This commit is contained in:
Andrew Kelley
2019-03-11 10:26:08 -04:00
parent fec4555476
commit 3a6f19de48
8 changed files with 189 additions and 70 deletions

View File

@@ -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;