commit 2cc33f5f4e0b55dcc1fb7cc4fb5d3b565b3a50d2 (tree)
parent 2996eb558756c697e2ccfe9691356e536c88916b
Author: Andrew Kelley <andrew@ziglang.org>
Date: Fri, 3 Mar 2023 17:29:20 -0700
std.Build.Step.cacheHit marks step as cached on hit
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/std/Build/Step.zig b/lib/std/Build/Step.zig
@@ -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 {