authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-05-09 16:20:18+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-05-09 16:20:18+02:00
log39adc228d8ad4d8b2d9d440f80dc0c9e80fcbc97
tree8e6c3312678ecd40c1f844289782bbd66a6d7a30
parent2e1fc0dd14c2897cd6fb4ff433bff2e5297272cb

link/macho: look in lib dirs (-L) for libSystem too


1 files changed, 4 insertions(+), 0 deletions(-)

src/link/MachO.zig+4
...@@ -891,6 +891,10 @@ pub fn resolveLibSystem(...@@ -891,6 +891,10 @@ pub fn resolveLibSystem(
891 },891 },
892 };892 };
893893
894 for (self.lib_dirs) |dir| {
895 if (try accessLibPath(arena, &test_path, &checked_paths, dir, "System")) break :success;
896 }
897
894 try self.reportMissingLibraryError(checked_paths.items, "unable to find libSystem system library", .{});898 try self.reportMissingLibraryError(checked_paths.items, "unable to find libSystem system library", .{});
895 return error.MissingLibSystem;899 return error.MissingLibSystem;
896 }900 }