aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-10-24 10:42:25 +0000
committerChris Boesch <chrboesch@noreply.codeberg.org>2023-10-24 10:42:25 +0000
commit08d294f2b8b13e33f116590f067c0ccaf079bfc1 (patch)
tree582d2e963912affd239e06f238cac41d6bfa421b
parent64465428674846080d26ed83e2412544eb0be92c (diff)
parent8a1fbea5c9d9902aa0eab111e3cf4c9d8af8cc17 (diff)
Merge pull request 'fixed build: renamed child.exec to run' (#19) from fix_build into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/19
-rw-r--r--README.md3
-rw-r--r--build.zig8
2 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index fabe8b5..cfe7128 100644
--- a/README.md
+++ b/README.md
@@ -95,7 +95,8 @@ that if you update one, you may need to also update the other.
### Version Changes
-Version-0.11.0-dev.4246+71dfce31b
+Version-0.12.0-dev.1243
+* *2023-10-24* zig 0.12.0-dev.1243 - changes in `std.ChildProcess`: renamed exec to run - see[#5853](https://github.com/ziglang/zig/issues/5853)
* *2023-06-26* zig 0.11.0-dev.4246 - changes in compile step (now it can be null)
* *2023-06-26* zig 0.11.0-dev.3853 - removal of destination type from all cast builtins
* *2023-06-20* zig 0.11.0-dev.3747 - `@enumToInt` is now `@intFromEnum` and `@intToFloat` is now `@floatFromInt`
diff --git a/build.zig b/build.zig
index 013408b..135190b 100644
--- a/build.zig
+++ b/build.zig
@@ -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) {