std.Target: Sort Os tags in a hopefully more sensible way.

This commit is contained in:
Alex Rønne Petersen
2024-08-08 23:04:38 +02:00
parent 60bf1a6543
commit 7f7008b5b2

View File

@@ -17,53 +17,62 @@ pub const Os = struct {
pub const Tag = enum {
freestanding,
dragonfly,
freebsd,
fuchsia,
ios,
linux,
ps3,
macos,
netbsd,
openbsd,
solaris,
uefi,
windows,
zos,
haiku,
minix,
rtems,
aix,
cuda,
nvcl,
amdhsa,
ps4,
ps5,
elfiamcu,
tvos,
watchos,
driverkit,
visionos,
mesa3d,
contiki,
amdpal,
hermit,
hurd,
wasi,
emscripten,
shadermodel,
liteos,
serenity,
opencl,
glsl450,
vulkan,
plan9,
illumos,
other,
contiki,
elfiamcu,
fuchsia,
hermit,
aix,
haiku,
hurd,
linux,
liteos,
minix,
plan9,
rtems,
serenity,
zos,
dragonfly,
freebsd,
netbsd,
openbsd,
driverkit,
ios,
macos,
tvos,
visionos,
watchos,
illumos,
solaris,
windows,
uefi,
ps3,
ps4,
ps5,
emscripten,
wasi,
amdhsa,
amdpal,
cuda,
glsl450,
mesa3d,
nvcl,
opencl,
shadermodel,
vulkan,
// LLVM tags deliberately omitted:
// - kfreebsd
// - darwin
// - kfreebsd
// - nacl
pub inline fn isDarwin(tag: Tag) bool {