mirror of
https://github.com/ziglang/zig.git
synced 2026-02-01 12:13:44 +00:00
link/macho: look in lib dirs (-L) for libSystem too
This commit is contained in:
parent
2e1fc0dd14
commit
39adc228d8
@ -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…
x
Reference in New Issue
Block a user