diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-01-10 11:26:54 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-10 17:11:26 -0800 |
| commit | 45ec85173329a62bef54a51603b366771ad89281 (patch) | |
| tree | 4580dd08f4c4cc8666837816af97706a69c0bf97 /lib/std/Build/Step.zig | |
| parent | df6aed0fc3a85285ad9bf15c942a66255c2b0b31 (diff) | |
| download | zig-45ec85173329a62bef54a51603b366771ad89281.tar.gz zig-45ec85173329a62bef54a51603b366771ad89281.zip | |
zig build: handle stderr more elegantly
* Specifically recognize stderr as a different concept than an error
message in Step results.
* Display it differently when only stderr occurs but the build proceeds
successfully.
closes #18473
Diffstat (limited to 'lib/std/Build/Step.zig')
| -rw-r--r-- | lib/std/Build/Step.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/Build/Step.zig b/lib/std/Build/Step.zig index 9a06e4b9e5..fade29db15 100644 --- a/lib/std/Build/Step.zig +++ b/lib/std/Build/Step.zig @@ -31,6 +31,7 @@ max_rss: usize, result_error_msgs: std.ArrayListUnmanaged([]const u8), result_error_bundle: std.zig.ErrorBundle, +result_stderr: []const u8, result_cached: bool, result_duration_ns: ?u64, /// 0 means unavailable or not reported. @@ -164,6 +165,7 @@ pub fn init(options: StepOptions) Step { }, .result_error_msgs = .{}, .result_error_bundle = std.zig.ErrorBundle.empty, + .result_stderr = "", .result_cached = false, .result_duration_ns = null, .result_peak_rss = 0, |
