std.Target: add managarm OS tag

This commit is contained in:
Alex Rønne Petersen 2025-08-29 00:18:12 +02:00
parent 464eef390b
commit fdd32a2257
No known key found for this signature in database
3 changed files with 13 additions and 0 deletions

View File

@ -667,6 +667,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
.driverkit => "driverkit", .driverkit => "driverkit",
.visionos => "xros", .visionos => "xros",
.serenity => "serenity", .serenity => "serenity",
.managarm => "managarm",
.opencl, .opencl,
.opengl, .opengl,
.vulkan, .vulkan,

View File

@ -22,6 +22,7 @@ pub const Os = struct {
contiki, contiki,
fuchsia, fuchsia,
hermit, hermit,
managarm,
aix, aix,
haiku, haiku,
@ -158,6 +159,8 @@ pub const Os = struct {
.freestanding, .freestanding,
.other, .other,
.managarm,
.haiku, .haiku,
.plan9, .plan9,
.serenity, .serenity,
@ -388,6 +391,8 @@ pub const Os = struct {
.freestanding, .freestanding,
.other, .other,
.managarm,
.haiku, .haiku,
.plan9, .plan9,
.serenity, .serenity,
@ -895,6 +900,7 @@ pub const Abi = enum {
.contiki, .contiki,
.fuchsia, .fuchsia,
.hermit, .hermit,
.managarm,
.plan9, .plan9,
.serenity, .serenity,
.zos, .zos,
@ -2094,6 +2100,7 @@ pub fn requiresLibC(target: *const Target) bool {
.netbsd, .netbsd,
.freestanding, .freestanding,
.fuchsia, .fuchsia,
.managarm,
.ps3, .ps3,
.zos, .zos,
.rtems, .rtems,
@ -2206,6 +2213,7 @@ pub const DynamicLinker = struct {
.contiki, .contiki,
.hermit, .hermit,
.managarm, // Needs to be double-checked.
.aix, .aix,
.plan9, .plan9,
@ -2621,6 +2629,8 @@ pub const DynamicLinker = struct {
// TODO go over each item in this list and either move it to the above list, or // TODO go over each item in this list and either move it to the above list, or
// implement the standard dynamic linker path code for it. // implement the standard dynamic linker path code for it.
.managarm,
.ps3, .ps3,
.ps4, .ps4,
.ps5, .ps5,
@ -3148,6 +3158,7 @@ pub fn cTypeBitSize(target: *const Target, c_type: CType) u16 {
.ps3, .ps3,
.contiki, .contiki,
.managarm,
.opengl, .opengl,
=> @panic("specify the C integer and float type sizes for this OS"), => @panic("specify the C integer and float type sizes for this OS"),
} }

View File

@ -230,6 +230,7 @@ pub fn targetTriple(allocator: Allocator, target: *const std.Target) ![]const u8
.visionos => "xros", .visionos => "xros",
.serenity => "serenity", .serenity => "serenity",
.vulkan => "vulkan", .vulkan => "vulkan",
.managarm => "managarm",
.@"3ds", .@"3ds",
.opengl, .opengl,