commit e211dce6fc7fecfea69acf548e751677879088b5 (tree)
parent 4d4a023042f7a60fe0cac618df1d7e98cbb322a4
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Sat, 10 Aug 2024 17:38:49 +0200
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
Diffstat:
4 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/lib/compiler/aro/aro/target.zig b/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",
diff --git a/lib/std/Target.zig b/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) {
diff --git a/lib/std/c.zig b/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,
diff --git a/src/codegen/llvm.zig b/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,