summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index bb4d13e..8a64333 100644
--- a/build.zig
+++ b/build.zig
@@ -397,9 +397,8 @@ const ZiglingStep = struct {
const result = Process.run(b.allocator, io, .{
.argv = &.{exe_path},
- .cwd = b.build_root.path.?,
- .cwd_dir = b.build_root.handle,
- .max_output_bytes = max_output_bytes,
+ .cwd = .{ .path = b.build_root.path.? },
+ .stdout_limit = .limited(max_output_bytes),
}) catch |err| {
return self.step.fail("unable to spawn {s}: {s}", .{
exe_path, @errorName(err),