mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Version libSystem shipped with zig toolchain
We will mimick the same solution as with the headers: * `libSystem.10.tbd` * `libSystem.11.tbd` * `libSystem.12.tbd` and so on...
This commit is contained in:
parent
4270f234db
commit
3a3576da60
4 changed files with 7201 additions and 343 deletions
3061
lib/libc/darwin/libSystem.10.tbd
vendored
Normal file
3061
lib/libc/darwin/libSystem.10.tbd
vendored
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
3781
lib/libc/darwin/libSystem.12.tbd
vendored
Normal file
3781
lib/libc/darwin/libSystem.12.tbd
vendored
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -727,8 +727,11 @@ pub fn flushModule(self: *MachO, comp: *Compilation) !void {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!libsystem_available) {
|
if (!libsystem_available) {
|
||||||
|
const libsystem_name = try std.fmt.allocPrint(arena, "libSystem.{d}.tbd", .{
|
||||||
|
self.base.options.target.os.version_range.semver.min.major,
|
||||||
|
});
|
||||||
const full_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{
|
const full_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{
|
||||||
"libc", "darwin", "libSystem.B.tbd",
|
"libc", "darwin", libsystem_name,
|
||||||
});
|
});
|
||||||
try libs.append(full_path);
|
try libs.append(full_path);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue