diff options
| author | Chris Boesch <[email protected]> | 2023-10-24 11:57:44 +0200 |
|---|---|---|
| committer | Chris Boesch <[email protected]> | 2023-10-24 11:57:44 +0200 |
| commit | 8a1fbea5c9d9902aa0eab111e3cf4c9d8af8cc17 (patch) | |
| tree | edbbd4ca8c84e9d0837b2c5677cce6d42438c4b2 /build.zig | |
| parent | 633af411e6ab280ff8e5b376e59c5e9b3a547c6d (diff) | |
| download | ziglings-8a1fbea5c9d9902aa0eab111e3cf4c9d8af8cc17.tar.xz ziglings-8a1fbea5c9d9902aa0eab111e3cf4c9d8af8cc17.zip | |
fixed build: renamed exec to run
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -15,7 +15,7 @@ const print = std.debug.print; // 1) Getting Started // 2) Version Changes comptime { - const required_zig = "0.11.0-dev.4246"; + const required_zig = "0.12.0-dev.1243"; const current_zig = builtin.zig_version; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; if (current_zig.order(min_zig) == .lt) { @@ -288,7 +288,7 @@ const ZiglingStep = struct { // Allow up to 1 MB of stdout capture. const max_output_bytes = 1 * 1024 * 1024; - var result = Child.exec(.{ + var result = Child.run(.{ .allocator = b.allocator, .argv = &.{exe_path}, .cwd = b.build_root.path.?, @@ -306,7 +306,7 @@ const ZiglingStep = struct { } } - fn check_output(self: *ZiglingStep, result: Child.ExecResult) !void { + fn check_output(self: *ZiglingStep, result: Child.RunResult) !void { const b = self.step.owner; // Make sure it exited cleanly. @@ -355,7 +355,7 @@ const ZiglingStep = struct { print("{s}PASSED:\n{s}{s}\n\n", .{ green_text, output, reset_text }); } - fn check_test(self: *ZiglingStep, result: Child.ExecResult) !void { + fn check_test(self: *ZiglingStep, result: Child.RunResult) !void { switch (result.term) { .Exited => |code| { if (code != 0) { |
