build(zig-0.16): fix crash on non-linux platforms

This commit is contained in:
CJ van den Berg 2026-04-13 13:25:28 +02:00
parent 69b705f8ea
commit 33205725c3
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -236,7 +236,7 @@ pub fn main(init: std.process.Init) !void {
defer watch_paths.deinit(allocator);
var cwd_buf: [std.fs.max_path_bytes]u8 = undefined;
const cwd_len = try std.Io.Dir.cwd().realPath(init.io, &cwd_buf);
const cwd_len = try std.Io.Dir.cwd().realPathFile(init.io, ".", &cwd_buf);
const cwd = cwd_buf[0..cwd_len];
var i: usize = 1;