diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-03-11 12:47:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-11 12:47:55 -0400 |
| commit | 80e5af2be21427b8590c31e21c8e6b4cae1b7a6e (patch) | |
| tree | 318a78764265ac2c97287fe0eda33e57a1d46cf8 /src/compiler.cpp | |
| parent | 9efa18f687a8c05f6651df6a7455a39c3d42d212 (diff) | |
| parent | 3ff0e8bd96bc6bf1d8eb4985c6d56766dab578f2 (diff) | |
| download | zig-80e5af2be21427b8590c31e21c8e6b4cae1b7a6e.tar.gz zig-80e5af2be21427b8590c31e21c8e6b4cae1b7a6e.zip | |
Merge pull request #2049 from ziglang/problematic-mtime-detection
stage1 caching system: detect problematic mtimes
Diffstat (limited to 'src/compiler.cpp')
| -rw-r--r-- | src/compiler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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; |
