Commit e211dce6fc

Alex Rønne Petersen <alex@alexrp.com>
2024-08-10 17:38:49
std.Target: Remove minix OS tag.
It has not seen development in 6 years. RIP. * https://github.com/Stichting-MINIX-Research-Foundation/minix/commits/master * https://groups.google.com/g/minix3/c/nUG1NwxXXkg
1 parent 4d4a023
Changed files (4)
lib
compiler
aro
std
src
codegen
lib/compiler/aro/aro/target.zig
@@ -626,7 +626,6 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
         .windows => "windows",
         .zos => "zos",
         .haiku => "haiku",
-        .minix => "minix",
         .rtems => "rtems",
         .aix => "aix",
         .cuda => "cuda",
lib/std/c.zig
@@ -6619,7 +6619,7 @@ pub const Stat = switch (native_os) {
 };
 
 pub const pthread_mutex_t = switch (native_os) {
-    .linux, .minix => extern struct {
+    .linux => extern struct {
         data: [data_len]u8 align(@alignOf(usize)) = [_]u8{0} ** data_len,
 
         const data_len = switch (native_abi) {
@@ -6716,7 +6716,7 @@ pub const pthread_cond_t = switch (native_os) {
         magic: u16 = 0x4356,
         data: u64 = 0,
     },
-    .fuchsia, .minix, .emscripten => extern struct {
+    .fuchsia, .emscripten => extern struct {
         data: [48]u8 align(@alignOf(usize)) = [_]u8{0} ** 48,
     },
     else => void,
lib/std/Target.zig
@@ -29,7 +29,6 @@ pub const Os = struct {
         hurd,
         linux,
         liteos,
-        minix,
         plan9,
         rtems,
         serenity,
@@ -151,7 +150,6 @@ pub const Os = struct {
                 .ps3,
                 .zos,
                 .haiku,
-                .minix,
                 .rtems,
                 .aix,
                 .cuda,
@@ -382,7 +380,6 @@ pub const Os = struct {
                 .ps3,
                 .zos,
                 .haiku,
-                .minix,
                 .rtems,
                 .aix,
                 .cuda,
@@ -580,7 +577,6 @@ pub const Os = struct {
             .fuchsia,
             .ps3,
             .zos,
-            .minix,
             .rtems,
             .aix,
             .cuda,
@@ -685,7 +681,6 @@ pub const Abi = enum {
             .dragonfly,
             .ps3,
             .zos,
-            .minix,
             .rtems,
             .aix,
             .cuda,
@@ -1843,7 +1838,6 @@ pub const DynamicLinker = struct {
             .fuchsia,
             .ps3,
             .zos,
-            .minix,
             .rtems,
             .aix,
             .cuda,
@@ -2144,7 +2138,6 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
         .illumos,
         .haiku,
         .fuchsia,
-        .minix,
         .serenity,
         => switch (target.cpu.arch) {
             .msp430 => switch (c_type) {
src/codegen/llvm.zig
@@ -142,7 +142,6 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
 
         .opengl,
         .plan9,
-        .minix,
         .contiki,
         .other,
         => "unknown",
@@ -212,7 +211,6 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
         .opencl,
         .opengl,
         .plan9,
-        .minix,
         .contiki,
         => .UnknownOS,