zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1e2b3b1df9a71db0f3791047146b02fc619be7dd (tree)
parent c76f451abc0e642972e85d426112f494d30d40c7
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon,  3 Mar 2025 17:18:18 -0800

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.

Diffstat:
Mlib/std/Build/Step.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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