diff --git a/build.zig b/build.zig index ea47f11..71ea66f 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.2043"; + const required_zig = "0.12.0-dev.2618"; const current_zig = builtin.zig_version; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; if (current_zig.order(min_zig) == .lt) { @@ -386,7 +386,7 @@ const ZiglingStep = struct { var zig_args = std.ArrayList([]const u8).init(b.allocator); defer zig_args.deinit(); - zig_args.append(b.zig_exe) catch @panic("OOM"); + zig_args.append(b.graph.zig_exe) catch @panic("OOM"); const cmd = switch (self.exercise.kind) { .exe => "build-exe", diff --git a/exercises/103_tokenization.zig b/exercises/103_tokenization.zig index 7f59766..eded880 100644 --- a/exercises/103_tokenization.zig +++ b/exercises/103_tokenization.zig @@ -1,9 +1,9 @@ // // The functionality of the standard library is becoming increasingly -// important in Zig. On the one hand, it is helpful to look at how +// important in Zig. First of all, it is helpful to take a look at how // the individual functions are implemented. Because this is wonderfully -// suitable as a template for your own functions. On the other hand, -// these standard functions are part of the basic equipment of Zig. +// suitable as a template for your own functions. In addition these +// standard functions are part of the basic configuration of Zig. // // This means that they are always available on every system. // Therefore it is worthwhile to deal with them also in Ziglings. diff --git a/test/tests.zig b/test/tests.zig index 0a19277..9ab15b3 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -33,7 +33,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step { const n = ex.number(); const cmd = b.addSystemCommand(&.{ - b.zig_exe, + b.graph.zig_exe, "build", "-Dhealed", b.fmt("-Dhealed-path={s}", .{tmp_path}), @@ -69,7 +69,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step { // TODO: when an exercise is modified, the cache is not invalidated. const cmd = b.addSystemCommand(&.{ - b.zig_exe, + b.graph.zig_exe, "build", "-Dhealed", b.fmt("-Dhealed-path={s}", .{tmp_path}), @@ -99,7 +99,7 @@ pub fn addCliTests(b: *std.Build, exercises: []const Exercise) *Step { const n = ex.number(); const cmd = b.addSystemCommand(&.{ - b.zig_exe, + b.graph.zig_exe, "build", b.fmt("-Dn={}", .{n}), });