Skip to content

Commit b49b750

Browse files
committed
std.Target: Remove cloudabi OS tag.
It's discontinued in favor of WASI. https://github.com/NuxiNL/cloudlibc
1 parent ef06e4b commit b49b750

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

lib/compiler/aro/aro/target.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
614614

615615
const llvm_os = switch (target.os.tag) {
616616
.freestanding => "unknown",
617-
.cloudabi => "cloudabi",
618617
.dragonfly => "dragonfly",
619618
.freebsd => "freebsd",
620619
.fuchsia => "fuchsia",

lib/std/Target.zig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ pub const Os = struct {
1717

1818
pub const Tag = enum {
1919
freestanding,
20-
cloudabi,
2120
dragonfly,
2221
freebsd,
2322
fuchsia,
@@ -139,7 +138,6 @@ pub const Os = struct {
139138
pub inline fn getVersionRangeTag(tag: Tag) @typeInfo(TaggedVersionRange).Union.tag_type.? {
140139
return switch (tag) {
141140
.freestanding,
142-
.cloudabi,
143141
.fuchsia,
144142
.ps3,
145143
.zos,
@@ -370,7 +368,6 @@ pub const Os = struct {
370368
pub fn default(tag: Tag, arch: Cpu.Arch) VersionRange {
371369
return switch (tag) {
372370
.freestanding,
373-
.cloudabi,
374371
.fuchsia,
375372
.ps3,
376373
.zos,
@@ -556,7 +553,6 @@ pub const Os = struct {
556553
.linux,
557554
.windows,
558555
.freestanding,
559-
.cloudabi,
560556
.fuchsia,
561557
.ps3,
562558
.zos,
@@ -662,7 +658,6 @@ pub const Abi = enum {
662658
pub fn default(arch: Cpu.Arch, os: Os) Abi {
663659
return if (arch.isWasm()) .musl else switch (os.tag) {
664660
.freestanding,
665-
.cloudabi,
666661
.dragonfly,
667662
.ps3,
668663
.zos,
@@ -1791,7 +1786,6 @@ pub const DynamicLinker = struct {
17911786

17921787
// TODO go over each item in this list and either move it to the above list, or
17931788
// implement the standard dynamic linker path code for it.
1794-
.cloudabi,
17951789
.fuchsia,
17961790
.ps3,
17971791
.zos,
@@ -2275,7 +2269,6 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
22752269
.longdouble => return 80,
22762270
},
22772271

2278-
.cloudabi,
22792272
.ps3,
22802273
.zos,
22812274
.rtems,

src/codegen/llvm.zig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
133133
.opencl,
134134
.glsl450,
135135
.plan9,
136-
.cloudabi,
137136
.minix,
138137
.contiki,
139138
.other,
@@ -204,7 +203,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
204203
.opencl,
205204
.glsl450,
206205
.plan9,
207-
.cloudabi,
208206
.minix,
209207
.contiki,
210208
=> .UnknownOS,

0 commit comments

Comments
 (0)