| ... | ... | @@ -3759,13 +3759,14 @@ fn processOneJob(comp: *Compilation, job: Job, prog_node: *std.Progress.Node) !v |
| 3759 | 3759 | const named_frame = tracy.namedFrame("libtsan"); |
| 3760 | 3760 | defer named_frame.end(); |
| 3761 | 3761 | |
| 3762 | | libtsan.buildTsan(comp, prog_node) catch |err| { |
| 3763 | | // TODO Surface more error details. |
| 3764 | | comp.lockAndSetMiscFailure( |
| 3762 | libtsan.buildTsan(comp, prog_node) catch |err| switch (err) { |
| 3763 | error.OutOfMemory => return error.OutOfMemory, |
| 3764 | error.SubCompilationFailed => return, // error reported already |
| 3765 | else => comp.lockAndSetMiscFailure( |
| 3765 | 3766 | .libtsan, |
| 3766 | 3767 | "unable to build TSAN library: {s}", |
| 3767 | 3768 | .{@errorName(err)}, |
| 3768 | | ); |
| 3769 | ), |
| 3769 | 3770 | }; |
| 3770 | 3771 | }, |
| 3771 | 3772 | .wasi_libc_crt_file => |crt_file| { |