diff options
| author | Jonathan Marler <johnnymarler@gmail.com> | 2021-10-20 15:49:48 -0600 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-02-17 14:48:22 +0200 |
| commit | baead472d7641bdd96130354bafadc1fb1ed223b (patch) | |
| tree | ce2e7619d3f7d91957c973e06980826444d33841 /src/main.zig | |
| parent | e2ad95c0883bfaacba7377fdf3e037d9fecd4940 (diff) | |
| download | zig-baead472d7641bdd96130354bafadc1fb1ed223b.tar.gz zig-baead472d7641bdd96130354bafadc1fb1ed223b.zip | |
reduce build error noise
Address https://github.com/ziglang/zig/issues/3477
This provides a mechanism for builds to fully report an error to the user and prevent zig from piling on extra noise.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index 05afc2b166..42e8f339f1 100644 --- a/src/main.zig +++ b/src/main.zig @@ -3616,7 +3616,9 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi .Exited => |code| { if (code == 0) return cleanExit(); - if (prominent_compile_errors) { + if (code == std.build.fail_fully_reported_exit_code) { + process.exit(std.build.fail_fully_reported_exit_code); + } else if (prominent_compile_errors) { fatal("the build command failed with exit code {d}", .{code}); } else { const cmd = try std.mem.join(arena, " ", child_argv); |
