aboutsummaryrefslogtreecommitdiff
path: root/src/cache_hash.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-13 12:56:58 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-13 12:56:58 -0400
commit54edbc6815e42457cd28fa9f1b94e732504b3fc9 (patch)
tree36c97169bf0cd59326a93b8c3c0d458f94aed8a9 /src/cache_hash.hpp
parent4cb55d3af6a71467b7d4399bedb961c81e9ad3d5 (diff)
parentd495dcc3c952c99e5358d9610cf09eb856f643b0 (diff)
downloadzig-54edbc6815e42457cd28fa9f1b94e732504b3fc9.tar.gz
zig-54edbc6815e42457cd28fa9f1b94e732504b3fc9.zip
Merge remote-tracking branch 'origin/master' into llvm8
Diffstat (limited to 'src/cache_hash.hpp')
-rw-r--r--src/cache_hash.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cache_hash.hpp b/src/cache_hash.hpp
index 5be02ea405..e2a10270f3 100644
--- a/src/cache_hash.hpp
+++ b/src/cache_hash.hpp
@@ -15,7 +15,7 @@ struct LinkLib;
struct CacheHashFile {
Buf *path;
- OsTimeStamp mtime;
+ OsFileAttr attr;
uint8_t bin_digest[48];
Buf *contents;
};
@@ -57,6 +57,8 @@ void cache_file_opt(CacheHash *ch, Buf *path);
// added any files before calling cache_hit. CacheHash::b64_digest becomes
// available for use after this call, even in the case of a miss, and it
// is a hash of the input parameters only.
+// If this function returns ErrorInvalidFormat, that error may be treated
+// as a cache miss.
Error ATTRIBUTE_MUST_USE cache_hit(CacheHash *ch, Buf *out_b64_digest);
// If you did not get a cache hit, call this function for every file