authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-30 02:17:00+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-30 06:30:26+02:00
logb49b7501cf040349eb6d86b63041c5152f23e5e8
treec11118a99b3e041d3b466ad6d7b9b513ac811122
parentef06e4b6e41b44b6be7417f2e29d7546aefa7b5e
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Remove `cloudabi` OS tag.

It's discontinued in favor of WASI. https://github.com/NuxiNL/cloudlibc

3 files changed, 0 insertions(+), 10 deletions(-)

lib/compiler/aro/aro/target.zig-1
...@@ -614,7 +614,6 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {...@@ -614,7 +614,6 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
614614
615 const llvm_os = switch (target.os.tag) {615 const llvm_os = switch (target.os.tag) {
616 .freestanding => "unknown",616 .freestanding => "unknown",
617 .cloudabi => "cloudabi",
618 .dragonfly => "dragonfly",617 .dragonfly => "dragonfly",
619 .freebsd => "freebsd",618 .freebsd => "freebsd",
620 .fuchsia => "fuchsia",619 .fuchsia => "fuchsia",
lib/std/Target.zig-7
...@@ -17,7 +17,6 @@ pub const Os = struct {...@@ -17,7 +17,6 @@ pub const Os = struct {
1717
18 pub const Tag = enum {18 pub const Tag = enum {
19 freestanding,19 freestanding,
20 cloudabi,
21 dragonfly,20 dragonfly,
22 freebsd,21 freebsd,
23 fuchsia,22 fuchsia,
...@@ -139,7 +138,6 @@ pub const Os = struct {...@@ -139,7 +138,6 @@ pub const Os = struct {
139 pub inline fn getVersionRangeTag(tag: Tag) @typeInfo(TaggedVersionRange).Union.tag_type.? {138 pub inline fn getVersionRangeTag(tag: Tag) @typeInfo(TaggedVersionRange).Union.tag_type.? {
140 return switch (tag) {139 return switch (tag) {
141 .freestanding,140 .freestanding,
142 .cloudabi,
143 .fuchsia,141 .fuchsia,
144 .ps3,142 .ps3,
145 .zos,143 .zos,
...@@ -370,7 +368,6 @@ pub const Os = struct {...@@ -370,7 +368,6 @@ pub const Os = struct {
370 pub fn default(tag: Tag, arch: Cpu.Arch) VersionRange {368 pub fn default(tag: Tag, arch: Cpu.Arch) VersionRange {
371 return switch (tag) {369 return switch (tag) {
372 .freestanding,370 .freestanding,
373 .cloudabi,
374 .fuchsia,371 .fuchsia,
375 .ps3,372 .ps3,
376 .zos,373 .zos,
...@@ -556,7 +553,6 @@ pub const Os = struct {...@@ -556,7 +553,6 @@ pub const Os = struct {
556 .linux,553 .linux,
557 .windows,554 .windows,
558 .freestanding,555 .freestanding,
559 .cloudabi,
560 .fuchsia,556 .fuchsia,
561 .ps3,557 .ps3,
562 .zos,558 .zos,
...@@ -662,7 +658,6 @@ pub const Abi = enum {...@@ -662,7 +658,6 @@ pub const Abi = enum {
662 pub fn default(arch: Cpu.Arch, os: Os) Abi {658 pub fn default(arch: Cpu.Arch, os: Os) Abi {
663 return if (arch.isWasm()) .musl else switch (os.tag) {659 return if (arch.isWasm()) .musl else switch (os.tag) {
664 .freestanding,660 .freestanding,
665 .cloudabi,
666 .dragonfly,661 .dragonfly,
667 .ps3,662 .ps3,
668 .zos,663 .zos,
...@@ -1791,7 +1786,6 @@ pub const DynamicLinker = struct {...@@ -1791,7 +1786,6 @@ pub const DynamicLinker = struct {
17911786
1792 // TODO go over each item in this list and either move it to the above list, or1787 // TODO go over each item in this list and either move it to the above list, or
1793 // implement the standard dynamic linker path code for it.1788 // implement the standard dynamic linker path code for it.
1794 .cloudabi,
1795 .fuchsia,1789 .fuchsia,
1796 .ps3,1790 .ps3,
1797 .zos,1791 .zos,
...@@ -2275,7 +2269,6 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {...@@ -2275,7 +2269,6 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
2275 .longdouble => return 80,2269 .longdouble => return 80,
2276 },2270 },
22772271
2278 .cloudabi,
2279 .ps3,2272 .ps3,
2280 .zos,2273 .zos,
2281 .rtems,2274 .rtems,
src/codegen/llvm.zig-2
...@@ -133,7 +133,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {...@@ -133,7 +133,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
133 .opencl,133 .opencl,
134 .glsl450,134 .glsl450,
135 .plan9,135 .plan9,
136 .cloudabi,
137 .minix,136 .minix,
138 .contiki,137 .contiki,
139 .other,138 .other,
...@@ -204,7 +203,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {...@@ -204,7 +203,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
204 .opencl,203 .opencl,
205 .glsl450,204 .glsl450,
206 .plan9,205 .plan9,
207 .cloudabi,
208 .minix,206 .minix,
209 .contiki,207 .contiki,
210 => .UnknownOS,208 => .UnknownOS,