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 {
1717
1818 pub const Tag = enum {
1919 freestanding,
20 dragonfly,
21 freebsd,
20 other,
21
22 contiki,
23 elfiamcu,
2224 fuchsia,
23 ios,
25 hermit,
26
27 aix,
28 haiku,
29 hurd,
2430 linux,
25 ps3,
26 macos,
31 liteos,
32 minix,
33 plan9,
34 rtems,
35 serenity,
36 zos,
37
38 dragonfly,
39 freebsd,
2740 netbsd,
2841 openbsd,
42
43 driverkit,
44 ios,
45 macos,
46 tvos,
47 visionos,
48 watchos,
49
50 illumos,
2951 solaris,
30 uefi,
52
3153 windows,
32 zos,
33 haiku,
34 minix,
35 rtems,
36 aix,
37 cuda,
38 nvcl,
39 amdhsa,
54 uefi,
55
56 ps3,
4057 ps4,
4158 ps5,
42 elfiamcu,
43 tvos,
44 watchos,
45 driverkit,
46 visionos,
47 mesa3d,
48 contiki,
49 amdpal,
50 hermit,
51 hurd,
52 wasi,
59
5360 emscripten,
54 shadermodel,
55 liteos,
56 serenity,
57 opencl,
61 wasi,
62
63 amdhsa,
64 amdpal,
65 cuda,
5866 glsl450,
67 mesa3d,
68 nvcl,
69 opencl,
70 shadermodel,
5971 vulkan,
60 plan9,
61 illumos,
62 other,
6372
6473 // LLVM tags deliberately omitted:
65 // - kfreebsd
6674 // - darwin
75 // - kfreebsd
6776 // - nacl
6877
6978 pub inline fn isDarwin(tag: Tag) bool {