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