From 5f626d28c14bfded775ae779dcde5b2435d4ac13 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 29 Apr 2026 17:17:30 -0700 Subject: [PATCH] maker: report when result_oom flag is set --- lib/compiler/Maker.zig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig index 0ba2cfbbfc3b6fa0ea103ba93e9ed35f6a0b3a8b..99cfc2c436906ee5e20651626518ac70b010b8d4 100644 --- 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'); } -- 2.54.0