fix: std.process.RunOptions fields changed (used in build.zig)

This commit is contained in:
tadakuso 2026-02-04 08:16:11 +08:00
parent 0ceb0df875
commit 6fe9625899

View File

@ -397,9 +397,8 @@ const ZiglingStep = struct {
const result = Process.run(b.allocator, io, .{ const result = Process.run(b.allocator, io, .{
.argv = &.{exe_path}, .argv = &.{exe_path},
.cwd = b.build_root.path.?, .cwd = .{ .path = b.build_root.path.? },
.cwd_dir = b.build_root.handle, .stdout_limit = .limited(max_output_bytes),
.max_output_bytes = max_output_bytes,
}) catch |err| { }) catch |err| {
return self.step.fail("unable to spawn {s}: {s}", .{ return self.step.fail("unable to spawn {s}: {s}", .{
exe_path, @errorName(err), exe_path, @errorName(err),