mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
link.MachO.Dylib: allow maccatalyst output to link macos libraries in TBDs
This is the logic that LLD uses. It is pretty silly, but it is what it is.
This commit is contained in:
parent
ca7523742f
commit
2125c94abe
1 changed files with 5 additions and 0 deletions
|
|
@ -716,6 +716,11 @@ pub const TargetMatcher = struct {
|
|||
const host_target = try targetToAppleString(allocator, cpu_arch, .MACOS);
|
||||
try self.target_strings.append(allocator, host_target);
|
||||
},
|
||||
.MACCATALYST => {
|
||||
// Mac Catalyst is allowed to link macOS libraries in a TBD because Apple were apparently too lazy
|
||||
// to add the proper target strings despite doing so in other places in the format???
|
||||
try self.target_strings.append(allocator, try targetToAppleString(allocator, cpu_arch, .MACOS));
|
||||
},
|
||||
.MACOS => {
|
||||
// Turns out that around 10.13/10.14 macOS release version, Apple changed the target tags in
|
||||
// tbd files from `macosx` to `macos`. In order to be compliant and therefore actually support
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue