| ... | @@ -446,6 +446,12 @@ pub fn flushModule(self: *MachO, arena: Allocator, tid: Zcu.PerThread.Id, prog_n | ... | @@ -446,6 +446,12 @@ pub fn flushModule(self: *MachO, arena: Allocator, tid: Zcu.PerThread.Id, prog_n |
| 446 | }, | 446 | }, |
| 447 | }; | 447 | }; |
| 448 | | 448 | |
| | 449 | for (system_libs.items) |lib| { |
| | 450 | const dso_input = try link.openDsoInput(diags, lib.path, lib.needed, lib.weak, lib.reexport); |
| | 451 | self.classifyInputFile(dso_input) catch |err| |
| | 452 | diags.addParseError(lib.path, "failed to parse input file: {s}", .{@errorName(err)}); |
| | 453 | } |
| | 454 | |
| 449 | // Finally, link against compiler_rt. | 455 | // Finally, link against compiler_rt. |
| 450 | if (comp.compiler_rt_lib) |crt_file| { | 456 | if (comp.compiler_rt_lib) |crt_file| { |
| 451 | const path = crt_file.full_object_path; | 457 | const path = crt_file.full_object_path; |
| ... | @@ -765,7 +771,7 @@ fn dumpArgv(self: *MachO, comp: *Compilation) !void { | ... | @@ -765,7 +771,7 @@ fn dumpArgv(self: *MachO, comp: *Compilation) !void { |
| 765 | Compilation.dump_argv(argv.items); | 771 | Compilation.dump_argv(argv.items); |
| 766 | } | 772 | } |
| 767 | | 773 | |
| 768 | /// TODO delete this, libsystem must be resolved when setting up the compilationt pipeline | 774 | /// TODO delete this, libsystem must be resolved when setting up the compilation pipeline |
| 769 | pub fn resolveLibSystem( | 775 | pub fn resolveLibSystem( |
| 770 | self: *MachO, | 776 | self: *MachO, |
| 771 | arena: Allocator, | 777 | arena: Allocator, |