mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
link/macho: look in lib dirs (-L) for libSystem too
This commit is contained in:
parent
2e1fc0dd14
commit
39adc228d8
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue