diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-10-16 13:41:24 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-10-23 16:27:38 -0700 |
| commit | e2a71b37d867e5567e06c8e57b04e648ade4aca3 (patch) | |
| tree | 87e6f0af2e722a27a1dd4ba06da16770cea5b4f0 /src/link | |
| parent | 8cfe303da907df41b41d2d78181760f80dc6579f (diff) | |
| download | zig-e2a71b37d867e5567e06c8e57b04e648ade4aca3.tar.gz zig-e2a71b37d867e5567e06c8e57b04e648ade4aca3.zip | |
fix MachO linking regression
Diffstat (limited to 'src/link')
| -rw-r--r-- | src/link/MachO.zig | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/link/MachO.zig b/src/link/MachO.zig index 4af02ee7a8..7182e0640f 100644 --- a/src/link/MachO.zig +++ b/src/link/MachO.zig @@ -446,6 +446,12 @@ pub fn flushModule(self: *MachO, arena: Allocator, tid: Zcu.PerThread.Id, prog_n }, }; + for (system_libs.items) |lib| { + const dso_input = try link.openDsoInput(diags, lib.path, lib.needed, lib.weak, lib.reexport); + self.classifyInputFile(dso_input) catch |err| + diags.addParseError(lib.path, "failed to parse input file: {s}", .{@errorName(err)}); + } + // Finally, link against compiler_rt. if (comp.compiler_rt_lib) |crt_file| { const path = crt_file.full_object_path; @@ -765,7 +771,7 @@ fn dumpArgv(self: *MachO, comp: *Compilation) !void { Compilation.dump_argv(argv.items); } -/// TODO delete this, libsystem must be resolved when setting up the compilationt pipeline +/// TODO delete this, libsystem must be resolved when setting up the compilation pipeline pub fn resolveLibSystem( self: *MachO, arena: Allocator, |
