commit 5f626d28c14bfded775ae779dcde5b2435d4ac13 (tree) parent 1e956fda90a9fe6d832c044838a1e6278a775c50 Author: Andrew Kelley <andrew@ziglang.org> Date: Wed, 29 Apr 2026 17:17:30 -0700 maker: report when result_oom flag is set Diffstat:
| M | lib/compiler/Maker.zig | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig @@ -1528,7 +1528,6 @@ pub fn printErrorMessages( ) !void { const c = &maker.scanned_config.configuration; const gpa = maker.gpa; - log.err("TODO also report if result_oom flag is set", .{}); const writer = stderr.writer; if (error_style.verboseContext()) { // Provide context for where these error messages are coming from by @@ -1608,6 +1607,13 @@ pub fn printErrorMessages( } } + if (failing_step.result_oom) { + try stderr.setColor(.red); + try writer.writeAll("error information missing due to allocation failure"); + try stderr.setColor(.reset); + try writer.writeByte('\n'); + } + try writer.writeByte('\n'); }