mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-13 21:40:46 -05:00
Exit rather than return upon version failure (#14)
A plain `zig build` was exiting as expected after the version check failure did an early 'return'. But `zig build 01` (specifying a step) would print the fail message and then continue...but fail to find the step (which was not added). Calling `exit()` solves this. Calling it with an error status code causes vomiting in the build system (since, you know, there was an error). So returning with `exit(0)` is the way to go here.
This commit is contained in:
parent
9b54ba79a0
commit
bbbda4bd0a
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ pub fn build(b: *Builder) void {
|
||||||
\\https://ziglang.org/download/
|
\\https://ziglang.org/download/
|
||||||
\\
|
\\
|
||||||
, .{});
|
, .{});
|
||||||
return;
|
std.os.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
use_color_escapes = false;
|
use_color_escapes = false;
|
||||||
|
|
Loading…
Reference in a new issue