| ... | ... | @@ -657,17 +657,17 @@ pub fn resolveLibSystem( |
| 657 | 657 | if (try resolveLibSystemInDirs(arena, search_dirs, out_libs)) return; |
| 658 | 658 | |
| 659 | 659 | // As a fallback, try linking against Zig shipped stub. |
| 660 | | const libsystem_name = try std.fmt.allocPrint(arena, "libSystem.{d}.tbd", .{ |
| 660 | const libsystem_name = try std.fmt.allocPrint(arena, "libSystem.{d}", .{ |
| 661 | 661 | target.os.version_range.semver.min.major, |
| 662 | 662 | }); |
| 663 | | const full_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ |
| 664 | | "libc", "darwin", libsystem_name, |
| 665 | | }); |
| 666 | | try out_libs.put(full_path, .{ |
| 667 | | .needed = true, |
| 668 | | .weak = false, |
| 669 | | .path = full_path, |
| 670 | | }); |
| 663 | const full_dir_path = try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libc", "darwin" }); |
| 664 | if (try resolveLib(arena, full_dir_path, libsystem_name, ".tbd")) |full_path| { |
| 665 | try out_libs.put(full_path, .{ |
| 666 | .needed = true, |
| 667 | .weak = false, |
| 668 | .path = full_path, |
| 669 | }); |
| 670 | } |
| 671 | 671 | } |
| 672 | 672 | |
| 673 | 673 | fn resolveLibSystemInDirs(arena: Allocator, dirs: []const []const u8, out_libs: anytype) !bool { |