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'); }