aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-12-03 20:07:51 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2024-12-03 20:43:15 +0100
commit09b39f77b7e380857c79adaec4765350163d6e16 (patch)
treefcf5d90a0f79f3757f51fd9917ce8bf5044647e8 /src/link
parent4e09e363cd00b1dd36467ef7958d750ea09f296d (diff)
downloadzig-09b39f77b7e380857c79adaec4765350163d6e16.tar.gz
zig-09b39f77b7e380857c79adaec4765350163d6e16.zip
std.Target: Remove Os.Tag.bridgeos.
It doesn't appear that targeting bridgeOS is meaningfully supported by Apple. Even LLVM/Clang appear to have incomplete support for it, suggesting that Apple never bothered to upstream that support. So there's really no sense in us pretending to support this.
Diffstat (limited to 'src/link')
-rw-r--r--src/link/MachO.zig11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/link/MachO.zig b/src/link/MachO.zig
index 9cfe839ca3..8bec62420b 100644
--- a/src/link/MachO.zig
+++ b/src/link/MachO.zig
@@ -3539,7 +3539,7 @@ pub fn requiresCodeSig(self: MachO) bool {
const target = self.getTarget();
return switch (target.cpu.arch) {
.aarch64 => switch (target.os.tag) {
- .bridgeos, .driverkit, .macos => true,
+ .driverkit, .macos => true,
.ios, .tvos, .visionos, .watchos => target.abi == .simulator,
else => false,
},
@@ -4143,7 +4143,6 @@ pub const Platform = struct {
const cmd = lc.cast(macho.build_version_command).?;
return .{
.os_tag = switch (cmd.platform) {
- .BRIDGEOS => .bridgeos,
.DRIVERKIT => .driverkit,
.IOS, .IOSSIMULATOR => .ios,
.MACCATALYST => .ios,
@@ -4191,11 +4190,7 @@ pub const Platform = struct {
return .{
.os_tag = target.os.tag,
.abi = target.abi,
- // This should use semver once we determine the version history.
- .version = if (target.os.tag == .bridgeos)
- .{ .major = 0, .minor = 0, .patch = 0 }
- else
- target.os.version_range.semver.min,
+ .version = target.os.version_range.semver.min,
};
}
@@ -4205,7 +4200,6 @@ pub const Platform = struct {
pub fn toApplePlatform(plat: Platform) macho.PLATFORM {
return switch (plat.os_tag) {
- .bridgeos => .BRIDGEOS,
.driverkit => .DRIVERKIT,
.ios => switch (plat.abi) {
.macabi => .MACCATALYST,
@@ -4284,7 +4278,6 @@ const SupportedPlatforms = struct {
// Source: https://github.com/apple-oss-distributions/ld64/blob/59a99ab60399c5e6c49e6945a9e1049c42b71135/src/ld/PlatformSupport.cpp#L52
// zig fmt: off
const supported_platforms = [_]SupportedPlatforms{
- .{ .bridgeos, .none, 0x010000, 0x010000 },
.{ .driverkit, .none, 0x130000, 0x130000 },
.{ .ios, .none, 0x0C0000, 0x070000 },
.{ .ios, .macabi, 0x0D0000, 0x0D0000 },