mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
std.Build.Step.cacheHit marks step as cached on hit
This commit is contained in:
parent
2996eb5587
commit
2cc33f5f4e
@ -415,7 +415,8 @@ pub fn allocPrintCmd(arena: Allocator, opt_cwd: ?[]const u8, argv: []const []con
|
||||
}
|
||||
|
||||
pub fn cacheHit(s: *Step, man: *std.Build.Cache.Manifest) !bool {
|
||||
return man.hit() catch |err| return failWithCacheError(s, man, err);
|
||||
s.result_cached = man.hit() catch |err| return failWithCacheError(s, man, err);
|
||||
return s.result_cached;
|
||||
}
|
||||
|
||||
fn failWithCacheError(s: *Step, man: *const std.Build.Cache.Manifest, err: anyerror) anyerror {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user