Skip to content

Commit d67789c

Browse files
authored
Merge pull request #340 from nchataing/fix-main-build
fix: main entry point is broken with version 0.11.0-dev.4228
2 parents b3b218a + a1f088a commit d67789c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ const ZiglingStep = struct {
240240
std.os.exit(2);
241241
};
242242

243-
self.run(exe_path, prog_node) catch {
243+
self.run(exe_path.?, prog_node) catch {
244244
self.printErrors();
245245

246246
if (self.exercise.hint) |hint|
@@ -350,7 +350,7 @@ const ZiglingStep = struct {
350350
print("{s}PASSED{s}\n\n", .{ green_text, reset_text });
351351
}
352352

353-
fn compile(self: *ZiglingStep, prog_node: *std.Progress.Node) ![]const u8 {
353+
fn compile(self: *ZiglingStep, prog_node: *std.Progress.Node) !?[]const u8 {
354354
print("Compiling {s}...\n", .{self.exercise.main_file});
355355

356356
const b = self.step.owner;

0 commit comments

Comments
 (0)