From 51a88cccf79614a7dd303aac2e64909e31de0850 Mon Sep 17 00:00:00 2001 From: Nicolas Chataing Date: Tue, 25 Jul 2023 14:59:17 +0200 Subject: [PATCH] fix: main entry point is broken with version 0.11.0-dev.4228 --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 6669ad3..1026058 100644 --- a/build.zig +++ b/build.zig @@ -240,7 +240,7 @@ const ZiglingStep = struct { std.os.exit(2); }; - self.run(exe_path, prog_node) catch { + self.run(exe_path.?, prog_node) catch { self.printErrors(); if (self.exercise.hint) |hint| @@ -350,7 +350,7 @@ const ZiglingStep = struct { print("{s}PASSED{s}\n\n", .{ green_text, reset_text }); } - fn compile(self: *ZiglingStep, prog_node: *std.Progress.Node) ![]const u8 { + fn compile(self: *ZiglingStep, prog_node: *std.Progress.Node) !?[]const u8 { print("Compiling {s}...\n", .{self.exercise.main_file}); const b = self.step.owner;