authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-30 02:15:39+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-30 06:30:25+02:00
logef06e4b6e41b44b6be7417f2e29d7546aefa7b5e
treefc3d79d9c0a787e99b0f3bac0603cdb395e6846a
parentc8ca05e93a5ad482279c9dd95e330ed6c1027c3b
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Remove `ananas` OS tag.

This is a fairly small hobby OS that has not seen development in 2 years. Our current policy is that hobby OSs should use the `other` tag. https://github.com/zhmu/ananas

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 .ananas => "ananas",
618 .cloudabi => "cloudabi",617 .cloudabi => "cloudabi",
619 .dragonfly => "dragonfly",618 .dragonfly => "dragonfly",
620 .freebsd => "freebsd",619 .freebsd => "freebsd",
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 ananas,
21 cloudabi,20 cloudabi,
22 dragonfly,21 dragonfly,
23 freebsd,22 freebsd,
...@@ -140,7 +139,6 @@ pub const Os = struct {...@@ -140,7 +139,6 @@ pub const Os = struct {
140 pub inline fn getVersionRangeTag(tag: Tag) @typeInfo(TaggedVersionRange).Union.tag_type.? {139 pub inline fn getVersionRangeTag(tag: Tag) @typeInfo(TaggedVersionRange).Union.tag_type.? {
141 return switch (tag) {140 return switch (tag) {
142 .freestanding,141 .freestanding,
143 .ananas,
144 .cloudabi,142 .cloudabi,
145 .fuchsia,143 .fuchsia,
146 .ps3,144 .ps3,
...@@ -372,7 +370,6 @@ pub const Os = struct {...@@ -372,7 +370,6 @@ pub const Os = struct {
372 pub fn default(tag: Tag, arch: Cpu.Arch) VersionRange {370 pub fn default(tag: Tag, arch: Cpu.Arch) VersionRange {
373 return switch (tag) {371 return switch (tag) {
374 .freestanding,372 .freestanding,
375 .ananas,
376 .cloudabi,373 .cloudabi,
377 .fuchsia,374 .fuchsia,
378 .ps3,375 .ps3,
...@@ -559,7 +556,6 @@ pub const Os = struct {...@@ -559,7 +556,6 @@ pub const Os = struct {
559 .linux,556 .linux,
560 .windows,557 .windows,
561 .freestanding,558 .freestanding,
562 .ananas,
563 .cloudabi,559 .cloudabi,
564 .fuchsia,560 .fuchsia,
565 .ps3,561 .ps3,
...@@ -666,7 +662,6 @@ pub const Abi = enum {...@@ -666,7 +662,6 @@ pub const Abi = enum {
666 pub fn default(arch: Cpu.Arch, os: Os) Abi {662 pub fn default(arch: Cpu.Arch, os: Os) Abi {
667 return if (arch.isWasm()) .musl else switch (os.tag) {663 return if (arch.isWasm()) .musl else switch (os.tag) {
668 .freestanding,664 .freestanding,
669 .ananas,
670 .cloudabi,665 .cloudabi,
671 .dragonfly,666 .dragonfly,
672 .ps3,667 .ps3,
...@@ -1796,7 +1791,6 @@ pub const DynamicLinker = struct {...@@ -1796,7 +1791,6 @@ pub const DynamicLinker = struct {
17961791
1797 // TODO go over each item in this list and either move it to the above list, or1792 // TODO go over each item in this list and either move it to the above list, or
1798 // implement the standard dynamic linker path code for it.1793 // implement the standard dynamic linker path code for it.
1799 .ananas,
1800 .cloudabi,1794 .cloudabi,
1801 .fuchsia,1795 .fuchsia,
1802 .ps3,1796 .ps3,
...@@ -2089,7 +2083,6 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {...@@ -2089,7 +2083,6 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
2089 .solaris,2083 .solaris,
2090 .illumos,2084 .illumos,
2091 .haiku,2085 .haiku,
2092 .ananas,
2093 .fuchsia,2086 .fuchsia,
2094 .minix,2087 .minix,
2095 => switch (target.cpu.arch) {2088 => switch (target.cpu.arch) {
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 .ananas,
137 .cloudabi,136 .cloudabi,
138 .minix,137 .minix,
139 .contiki,138 .contiki,
...@@ -205,7 +204,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {...@@ -205,7 +204,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
205 .opencl,204 .opencl,
206 .glsl450,205 .glsl450,
207 .plan9,206 .plan9,
208 .ananas,
209 .cloudabi,207 .cloudabi,
210 .minix,208 .minix,
211 .contiki,209 .contiki,