mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-09 19:40:48 -05:00
Merge pull request #340 from nchataing/fix-main-build
fix: main entry point is broken with version 0.11.0-dev.4228
This commit is contained in:
commit
5865ed5f2e
1 changed files with 2 additions and 2 deletions
|
@ -240,7 +240,7 @@ const ZiglingStep = struct {
|
||||||
std.os.exit(2);
|
std.os.exit(2);
|
||||||
};
|
};
|
||||||
|
|
||||||
self.run(exe_path, prog_node) catch {
|
self.run(exe_path.?, prog_node) catch {
|
||||||
self.printErrors();
|
self.printErrors();
|
||||||
|
|
||||||
if (self.exercise.hint) |hint|
|
if (self.exercise.hint) |hint|
|
||||||
|
@ -350,7 +350,7 @@ const ZiglingStep = struct {
|
||||||
print("{s}PASSED{s}\n\n", .{ green_text, reset_text });
|
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});
|
print("Compiling {s}...\n", .{self.exercise.main_file});
|
||||||
|
|
||||||
const b = self.step.owner;
|
const b = self.step.owner;
|
||||||
|
|
Loading…
Reference in a new issue