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 {
12931293 const llvm_os = switch (target.os.tag) {
12941294 .amdhsa => "amdhsa",
12951295 .amdpal => "amdpal",
1296 .contiki => "contiki",
12971296 .cuda => "cuda",
12981297 .dragonfly => "dragonfly",
12991298 .driverkit => "driverkit",
lib/std/Build/Configuration.zig-1
......@@ -2379,7 +2379,6 @@ pub const TargetQuery = struct {
23792379 pub const OsTag = enum(u6) {
23802380 freestanding,
23812381 other,
2382 contiki,
23832382 fuchsia,
23842383 managarm,
23852384 haiku,
lib/std/Target.zig-14
......@@ -19,7 +19,6 @@ pub const Os = struct {
1919 freestanding,
2020 other,
2121
22 contiki,
2322 fuchsia,
2423 managarm,
2524
......@@ -177,7 +176,6 @@ pub const Os = struct {
177176 .ashetos,
178177 => .none,
179178
180 .contiki,
181179 .fuchsia,
182180
183181 .rtems,
......@@ -417,12 +415,6 @@ pub const Os = struct {
417415 .ashetos,
418416 => .{ .none = {} },
419417
420 .contiki => .{
421 .semver = .{
422 .min = .{ .major = 5, .minor = 0, .patch = 0 },
423 .max = .{ .major = 5, .minor = 1, .patch = 0 },
424 },
425 },
426418 .fuchsia => .{
427419 .semver = .{
428420 .min = .{ .major = 27, .minor = 0, .patch = 0 },
......@@ -946,7 +938,6 @@ pub const Abi = enum {
946938
947939 .ashetos => .eabi,
948940
949 .contiki,
950941 .illumos,
951942 .managarm,
952943 .plan9,
......@@ -2333,7 +2324,6 @@ pub fn requiresLibC(target: *const Target) bool {
23332324 .psp,
23342325 .vita,
23352326 .mesa3d,
2336 .contiki,
23372327 .amdpal,
23382328 .hurd,
23392329 .wasi,
......@@ -2484,7 +2474,6 @@ pub const DynamicLinker = struct {
24842474 .freestanding,
24852475 .other,
24862476
2487 .contiki,
24882477 .managarm, // Needs to be double-checked.
24892478
24902479 .plan9,
......@@ -2917,8 +2906,6 @@ pub const DynamicLinker = struct {
29172906 .freestanding,
29182907 .other,
29192908
2920 .contiki,
2921
29222909 .plan9,
29232910 .rtems,
29242911
......@@ -3557,7 +3544,6 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) ?u16 {
35573544 .opengl => null,
35583545
35593546 .ps3,
3560 .contiki,
35613547 .managarm,
35623548 => @panic("specify the C integer and float type sizes for this OS"),
35633549 };
lib/std/zig/llvm/Builder.zig-1
......@@ -282,7 +282,6 @@ pub fn tripleForTarget(allocator: Allocator, target: *const std.Target) ![]const
282282 .vulkan => "vulkan",
283283 .managarm => "managarm",
284284
285 .contiki,
286285 .freestanding,
287286 .opencl, // https://llvm.org/docs/SPIRVUsage.html#target-triples
288287 .opengl,