authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-03-03 17:18:18-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-03-03 17:18:18-08:00
log1e2b3b1df9a71db0f3791047146b02fc619be7dd
tree58eb443a054138f1e91afb5f5e1fc63d14a7ba93
parentc76f451abc0e642972e85d426112f494d30d40c7

std.Build.Step: fix missing path sep in error message

I have a more robust solution to this coming up in the writer interface branch.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/Build/Step.zig+2-2
...@@ -764,8 +764,8 @@ fn failWithCacheError(s: *Step, man: *const Build.Cache.Manifest, err: Build.Cac...@@ -764,8 +764,8 @@ fn failWithCacheError(s: *Step, man: *const Build.Cache.Manifest, err: Build.Cac
764 .file_open, .file_stat, .file_read, .file_hash => |op| {764 .file_open, .file_stat, .file_read, .file_hash => |op| {
765 const pp = man.files.keys()[op.file_index].prefixed_path;765 const pp = man.files.keys()[op.file_index].prefixed_path;
766 const prefix = man.cache.prefixes()[pp.prefix].path orelse "";766 const prefix = man.cache.prefixes()[pp.prefix].path orelse "";
767 return s.fail("failed to check cache: '{s}{s}' {s} {s}", .{767 return s.fail("failed to check cache: '{s}{c}{s}' {s} {s}", .{
768 prefix, pp.sub_path, @tagName(man.diagnostic), @errorName(op.err),768 prefix, std.fs.path.sep, pp.sub_path, @tagName(man.diagnostic), @errorName(op.err),
769 });769 });
770 },770 },
771 },771 },