Skip to content

Commit 963d7ce

Browse files
committed
std.Target: Add bridgeos tag to Os.
1 parent 254143c commit 963d7ce

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

lib/compiler/aro/aro/target.zig

+1
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
649649
.visionos => "xros",
650650
.driverkit => "driverkit",
651651
.shadermodel => "shadermodel",
652+
.bridgeos => "bridgeos",
652653
.opencl,
653654
.opengl,
654655
.vulkan,

lib/std/Target.zig

+10-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub const Os = struct {
3838
netbsd,
3939
openbsd,
4040

41+
bridgeos,
4142
driverkit,
4243
ios,
4344
macos,
@@ -75,6 +76,7 @@ pub const Os = struct {
7576

7677
pub inline fn isDarwin(tag: Tag) bool {
7778
return switch (tag) {
79+
.bridgeos,
7880
.driverkit,
7981
.ios,
8082
.macos,
@@ -122,6 +124,7 @@ pub const Os = struct {
122124
pub fn dynamicLibSuffix(tag: Tag) [:0]const u8 {
123125
return switch (tag) {
124126
.windows, .uefi => ".dll",
127+
.bridgeos,
125128
.driverkit,
126129
.ios,
127130
.macos,
@@ -186,6 +189,7 @@ pub const Os = struct {
186189
.other,
187190
=> .none,
188191

192+
.bridgeos,
189193
.driverkit,
190194
.freebsd,
191195
.macos,
@@ -412,6 +416,7 @@ pub const Os = struct {
412416
.plan9,
413417
.illumos,
414418
.serenity,
419+
.bridgeos,
415420
.other,
416421
=> .{ .none = {} },
417422

@@ -573,6 +578,7 @@ pub const Os = struct {
573578
.freebsd,
574579
.aix,
575580
.netbsd,
581+
.bridgeos,
576582
.driverkit,
577583
.macos,
578584
.ios,
@@ -721,6 +727,7 @@ pub const Abi = enum {
721727
.wasi,
722728
.emscripten,
723729
=> .musl,
730+
.bridgeos,
724731
.opencl,
725732
.opengl,
726733
.vulkan,
@@ -820,7 +827,7 @@ pub const ObjectFormat = enum {
820827
pub fn default(os_tag: Os.Tag, arch: Cpu.Arch) ObjectFormat {
821828
return switch (os_tag) {
822829
.aix => .xcoff,
823-
.driverkit, .ios, .macos, .tvos, .visionos, .watchos => .macho,
830+
.bridgeos, .driverkit, .ios, .macos, .tvos, .visionos, .watchos => .macho,
824831
.plan9 => .plan9,
825832
.uefi, .windows => .coff,
826833
.zos => .goff,
@@ -1815,6 +1822,7 @@ pub const DynamicLinker = struct {
18151822
=> none,
18161823
},
18171824

1825+
.bridgeos,
18181826
.driverkit,
18191827
.ios,
18201828
.tvos,
@@ -2274,6 +2282,7 @@ pub fn cTypeBitSize(target: Target, c_type: CType) u16 {
22742282
},
22752283
},
22762284

2285+
.bridgeos,
22772286
.driverkit,
22782287
.ios,
22792288
.macos,

src/codegen/llvm.zig

+2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
128128
.hurd => "hurd",
129129
.wasi => "wasi",
130130
.emscripten => "emscripten",
131+
.bridgeos => "bridgeos",
131132
.macos => "macosx",
132133
.ios => "ios",
133134
.tvos => "tvos",
@@ -240,6 +241,7 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
240241
.shadermodel => .ShaderModel,
241242
.vulkan => .Vulkan,
242243
.serenity => .Serenity,
244+
.bridgeos => .BridgeOS,
243245

244246
.opengl,
245247
.plan9,

0 commit comments

Comments
 (0)