| ... | @@ -466,7 +466,19 @@ pub fn flush( | ... | @@ -466,7 +466,19 @@ pub fn flush( |
| 466 | self.classifyInputFile(archive_input) catch |err| | 466 | self.classifyInputFile(archive_input) catch |err| |
| 467 | diags.addParseError(lib.path, "failed to parse input file: {s}", .{@errorName(err)}); | 467 | diags.addParseError(lib.path, "failed to parse input file: {s}", .{@errorName(err)}); |
| 468 | }, | 468 | }, |
| 469 | else => unreachable, | 469 | else => { |
| | 470 | dso: { |
| | 471 | const dso_input = link.openDsoInput(io, diags, lib.path, lib.needed, lib.weak, lib.reexport) catch break :dso; |
| | 472 | self.classifyInputFile(dso_input) catch break :dso; |
| | 473 | continue; |
| | 474 | } |
| | 475 | ar: { |
| | 476 | const archive_input = link.openArchiveInput(io, diags, lib.path, lib.must_link, lib.hidden) catch break :ar; |
| | 477 | self.classifyInputFile(archive_input) catch break :ar; |
| | 478 | continue; |
| | 479 | } |
| | 480 | diags.addParseError(lib.path, "unknown file extension", .{}); |
| | 481 | }, |
| 470 | } | 482 | } |
| 471 | } | 483 | } |
| 472 | | 484 | |