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

This commit is contained in:
Jakub Konka 2024-05-09 16:20:18 +02:00
parent 2e1fc0dd14
commit 39adc228d8

View File

@ -891,6 +891,10 @@ pub fn resolveLibSystem(
},
};
for (self.lib_dirs) |dir| {
if (try accessLibPath(arena, &test_path, &checked_paths, dir, "System")) break :success;
}
try self.reportMissingLibraryError(checked_paths.items, "unable to find libSystem system library", .{});
return error.MissingLibSystem;
}