authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-08 23:04:38+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-08-12 08:57:10+02:00
log7f7008b5b2cb5d7d41295f04c28d78365063f7c1
tree1c9965fbda64a130067a5e9c5fdefff59e7dd7fb
parent60bf1a6543f37ede832d7aa94521f5506a932fe7
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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


1 files changed, 42 insertions(+), 33 deletions(-)

lib/std/Target.zig+42-33
...@@ -17,53 +17,62 @@ pub const Os = struct {...@@ -17,53 +17,62 @@ pub const Os = struct {
1717
18 pub const Tag = enum {18 pub const Tag = enum {
19 freestanding,19 freestanding,
20 dragonfly,20 other,
21 freebsd,21
22 contiki,
23 elfiamcu,
22 fuchsia,24 fuchsia,
23 ios,25 hermit,
26
27 aix,
28 haiku,
29 hurd,
24 linux,30 linux,
25 ps3,31 liteos,
26 macos,32 minix,
33 plan9,
34 rtems,
35 serenity,
36 zos,
37
38 dragonfly,
39 freebsd,
27 netbsd,40 netbsd,
28 openbsd,41 openbsd,
42
43 driverkit,
44 ios,
45 macos,
46 tvos,
47 visionos,
48 watchos,
49
50 illumos,
29 solaris,51 solaris,
30 uefi,52
31 windows,53 windows,
32 zos,54 uefi,
33 haiku,55
34 minix,56 ps3,
35 rtems,
36 aix,
37 cuda,
38 nvcl,
39 amdhsa,
40 ps4,57 ps4,
41 ps5,58 ps5,
42 elfiamcu,59
43 tvos,
44 watchos,
45 driverkit,
46 visionos,
47 mesa3d,
48 contiki,
49 amdpal,
50 hermit,
51 hurd,
52 wasi,
53 emscripten,60 emscripten,
54 shadermodel,61 wasi,
55 liteos,62
56 serenity,63 amdhsa,
57 opencl,64 amdpal,
65 cuda,
58 glsl450,66 glsl450,
67 mesa3d,
68 nvcl,
69 opencl,
70 shadermodel,
59 vulkan,71 vulkan,
60 plan9,
61 illumos,
62 other,
6372
64 // LLVM tags deliberately omitted:73 // LLVM tags deliberately omitted:
65 // - kfreebsd
66 // - darwin74 // - darwin
75 // - kfreebsd
67 // - nacl76 // - nacl
6877
69 pub inline fn isDarwin(tag: Tag) bool {78 pub inline fn isDarwin(tag: Tag) bool {