authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-12 14:43:32+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-12 14:43:32+02:00
log963d4466d506d2441e07084ff87b82c4637bba8e
tree4ba8edf13d821c3954e87c51d711772771cd7ef6
parent7a7b944ef8ddc87a89fc4057187213c68a200fb2
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: remove contiki OS tag

Contiki-NG is really more like a freestanding library for driving MCUs and peripherals; it's not an OS with an ABI as such. So a dedicated OS tag isn't really doing anything useful over `freestanding`.

4 files changed, 0 insertions(+), 17 deletions(-)

lib/compiler/aro/aro/Target.zig-1
...@@ -1293,7 +1293,6 @@ pub fn toLLVMTriple(target: *const Target, buf: []u8) []const u8 {...@@ -1293,7 +1293,6 @@ pub fn toLLVMTriple(target: *const Target, buf: []u8) []const u8 {
1293 const llvm_os = switch (target.os.tag) {1293 const llvm_os = switch (target.os.tag) {
1294 .amdhsa => "amdhsa",1294 .amdhsa => "amdhsa",
1295 .amdpal => "amdpal",1295 .amdpal => "amdpal",
1296 .contiki => "contiki",
1297 .cuda => "cuda",1296 .cuda => "cuda",
1298 .dragonfly => "dragonfly",1297 .dragonfly => "dragonfly",
1299 .driverkit => "driverkit",1298 .driverkit => "driverkit",
lib/std/Build/Configuration.zig-1
...@@ -2379,7 +2379,6 @@ pub const TargetQuery = struct {...@@ -2379,7 +2379,6 @@ pub const TargetQuery = struct {
2379 pub const OsTag = enum(u6) {2379 pub const OsTag = enum(u6) {
2380 freestanding,2380 freestanding,
2381 other,2381 other,
2382 contiki,
2383 fuchsia,2382 fuchsia,
2384 managarm,2383 managarm,
2385 haiku,2384 haiku,
lib/std/Target.zig-14
...@@ -19,7 +19,6 @@ pub const Os = struct {...@@ -19,7 +19,6 @@ pub const Os = struct {
19 freestanding,19 freestanding,
20 other,20 other,
2121
22 contiki,
23 fuchsia,22 fuchsia,
24 managarm,23 managarm,
2524
...@@ -177,7 +176,6 @@ pub const Os = struct {...@@ -177,7 +176,6 @@ pub const Os = struct {
177 .ashetos,176 .ashetos,
178 => .none,177 => .none,
179178
180 .contiki,
181 .fuchsia,179 .fuchsia,
182180
183 .rtems,181 .rtems,
...@@ -417,12 +415,6 @@ pub const Os = struct {...@@ -417,12 +415,6 @@ pub const Os = struct {
417 .ashetos,415 .ashetos,
418 => .{ .none = {} },416 => .{ .none = {} },
419417
420 .contiki => .{
421 .semver = .{
422 .min = .{ .major = 5, .minor = 0, .patch = 0 },
423 .max = .{ .major = 5, .minor = 1, .patch = 0 },
424 },
425 },
426 .fuchsia => .{418 .fuchsia => .{
427 .semver = .{419 .semver = .{
428 .min = .{ .major = 27, .minor = 0, .patch = 0 },420 .min = .{ .major = 27, .minor = 0, .patch = 0 },
...@@ -946,7 +938,6 @@ pub const Abi = enum {...@@ -946,7 +938,6 @@ pub const Abi = enum {
946938
947 .ashetos => .eabi,939 .ashetos => .eabi,
948940
949 .contiki,
950 .illumos,941 .illumos,
951 .managarm,942 .managarm,
952 .plan9,943 .plan9,
...@@ -2333,7 +2324,6 @@ pub fn requiresLibC(target: *const Target) bool {...@@ -2333,7 +2324,6 @@ pub fn requiresLibC(target: *const Target) bool {
2333 .psp,2324 .psp,
2334 .vita,2325 .vita,
2335 .mesa3d,2326 .mesa3d,
2336 .contiki,
2337 .amdpal,2327 .amdpal,
2338 .hurd,2328 .hurd,
2339 .wasi,2329 .wasi,
...@@ -2484,7 +2474,6 @@ pub const DynamicLinker = struct {...@@ -2484,7 +2474,6 @@ pub const DynamicLinker = struct {
2484 .freestanding,2474 .freestanding,
2485 .other,2475 .other,
24862476
2487 .contiki,
2488 .managarm, // Needs to be double-checked.2477 .managarm, // Needs to be double-checked.
24892478
2490 .plan9,2479 .plan9,
...@@ -2917,8 +2906,6 @@ pub const DynamicLinker = struct {...@@ -2917,8 +2906,6 @@ pub const DynamicLinker = struct {
2917 .freestanding,2906 .freestanding,
2918 .other,2907 .other,
29192908
2920 .contiki,
2921
2922 .plan9,2909 .plan9,
2923 .rtems,2910 .rtems,
29242911
...@@ -3557,7 +3544,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {...@@ -3557,7 +3544,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
3557 .opengl => null,3544 .opengl => null,
35583545
3559 .ps3,3546 .ps3,
3560 .contiki,
3561 .managarm,3547 .managarm,
3562 => @panic("specify the C integer and float type sizes for this OS"),3548 => @panic("specify the C integer and float type sizes for this OS"),
3563 };3549 };
lib/std/zig/llvm/Builder.zig-1
...@@ -282,7 +282,6 @@ pub fn tripleForTarget(allocator: Allocator, target: *const std.Target) ![]const...@@ -282,7 +282,6 @@ pub fn tripleForTarget(allocator: Allocator, target: *const std.Target) ![]const
282 .vulkan => "vulkan",282 .vulkan => "vulkan",
283 .managarm => "managarm",283 .managarm => "managarm",
284284
285 .contiki,
286 .freestanding,285 .freestanding,
287 .opencl, // https://llvm.org/docs/SPIRVUsage.html#target-triples286 .opencl, // https://llvm.org/docs/SPIRVUsage.html#target-triples
288 .opengl,287 .opengl,