From 2b9e3da5c8f0568c5c5de1f03754f739339b13fa Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Fri, 22 Mar 2024 00:25:01 +0100 Subject: [PATCH] Fixed the renaming of std.os to std.posix --- README.md | 11 ++++++----- build.zig | 10 +++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 830f5eb..8a26c1c 100644 --- a/README.md +++ b/README.md @@ -96,11 +96,12 @@ that if you update one, you may need to also update the other. ### Version Changes -Version-0.12.0-dev.3302 -* *2024-03-14* zig 0.12.0-dev.3302 - changes in `std.fmt` - floating-point formatting implementation - see[#19229](https://github.com/ziglang/zig/pull/19229) -* *2024-02-05* zig 0.12.0-dev.2618 - changes in `build system` - from `Step.zig_exe` to `Step.graph.zig_exe` - see[#18778](https://github.com/ziglang/zig/issues/18778) -* *2024-01-05* zig 0.12.0-dev.2043 - rename of `std.Build.FileSource` to `std.Build.LazyPath` - see[#16353](https://github.com/ziglang/zig/issues/16353) -* *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) +Version-0.12.0-dev.3397 +* *2024-03-21* zig 0.12.0-dev.3397 - rename std.os to std.posix - see [#5019](https://github.com/ziglang/zig/issues/5019) +* *2024-03-14* zig 0.12.0-dev.3302 - changes in `std.fmt` - floating-point formatting implementation - see [#19229](https://github.com/ziglang/zig/pull/19229) +* *2024-02-05* zig 0.12.0-dev.2618 - changes in `build system` - from `Step.zig_exe` to `Step.graph.zig_exe` - see [#18778](https://github.com/ziglang/zig/issues/18778) +* *2024-01-05* zig 0.12.0-dev.2043 - rename of `std.Build.FileSource` to `std.Build.LazyPath` - see [#16353](https://github.com/ziglang/zig/issues/16353) +* *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 1101773..b90703b 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.12.0-dev.3302"; + const required_zig = "0.12.0-dev.3397"; const current_zig = builtin.zig_version; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; if (current_zig.order(min_zig) == .lt) { @@ -119,7 +119,7 @@ pub const logo = ; pub fn build(b: *Build) !void { - if (!validate_exercises()) std.os.exit(2); + if (!validate_exercises()) std.process.exit(2); use_color_escapes = false; if (std.io.getStdErr().supportsAnsiEscapeCodes()) { @@ -172,7 +172,7 @@ pub fn build(b: *Build) !void { // Named build mode: verifies a single exercise. if (n == 0 or n > exercises.len - 1) { print("unknown exercise number: {}\n", .{n}); - std.os.exit(2); + std.process.exit(2); } const ex = exercises[n - 1]; @@ -262,7 +262,7 @@ const ZiglingStep = struct { print("\n{s}Ziglings hint: {s}{s}", .{ bold_text, hint, reset_text }); self.help(); - std.os.exit(2); + std.process.exit(2); }; self.run(exe_path.?, prog_node) catch { @@ -272,7 +272,7 @@ const ZiglingStep = struct { print("\n{s}Ziglings hint: {s}{s}", .{ bold_text, hint, reset_text }); self.help(); - std.os.exit(2); + std.process.exit(2); }; // Print possible warning/debug messages.