| ... | @@ -4530,6 +4530,9 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P | ... | @@ -4530,6 +4530,9 @@ fn updateCObject(comp: *Compilation, c_object: *CObject, c_obj_prog_node: *std.P |
| 4530 | log.err("{}: failed to parse clang diagnostics: {s}", .{ err, stderr }); | 4530 | log.err("{}: failed to parse clang diagnostics: {s}", .{ err, stderr }); |
| 4531 | return comp.failCObj(c_object, "clang exited with code {d}", .{code}); | 4531 | return comp.failCObj(c_object, "clang exited with code {d}", .{code}); |
| 4532 | }; | 4532 | }; |
| | 4533 | zig_cache_tmp_dir.deleteFile(out_diag_path) catch |err| { |
| | 4534 | log.warn("failed to delete '{s}': {s}", .{ out_diag_path, @errorName(err) }); |
| | 4535 | }; |
| 4533 | return comp.failCObjWithOwnedDiagBundle(c_object, bundle); | 4536 | return comp.failCObjWithOwnedDiagBundle(c_object, bundle); |
| 4534 | } | 4537 | } |
| 4535 | }, | 4538 | }, |