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