Commit 7f7008b5b2

Alex Rønne Petersen <alex@alexrp.com>
2024-08-08 23:04:38
std.Target: Sort Os tags in a hopefully more sensible way.
1 parent 60bf1a6
Changed files (1)
lib
lib/std/Target.zig
@@ -17,53 +17,62 @@ pub const Os = struct {
 
     pub const Tag = enum {
         freestanding,
-        dragonfly,
-        freebsd,
+        other,
+
+        contiki,
+        elfiamcu,
         fuchsia,
-        ios,
+        hermit,
+
+        aix,
+        haiku,
+        hurd,
         linux,
-        ps3,
-        macos,
+        liteos,
+        minix,
+        plan9,
+        rtems,
+        serenity,
+        zos,
+
+        dragonfly,
+        freebsd,
         netbsd,
         openbsd,
+
+        driverkit,
+        ios,
+        macos,
+        tvos,
+        visionos,
+        watchos,
+
+        illumos,
         solaris,
-        uefi,
+
         windows,
-        zos,
-        haiku,
-        minix,
-        rtems,
-        aix,
-        cuda,
-        nvcl,
-        amdhsa,
+        uefi,
+
+        ps3,
         ps4,
         ps5,
-        elfiamcu,
-        tvos,
-        watchos,
-        driverkit,
-        visionos,
-        mesa3d,
-        contiki,
-        amdpal,
-        hermit,
-        hurd,
-        wasi,
+
         emscripten,
-        shadermodel,
-        liteos,
-        serenity,
-        opencl,
+        wasi,
+
+        amdhsa,
+        amdpal,
+        cuda,
         glsl450,
+        mesa3d,
+        nvcl,
+        opencl,
+        shadermodel,
         vulkan,
-        plan9,
-        illumos,
-        other,
 
         // LLVM tags deliberately omitted:
-        // - kfreebsd
         // - darwin
+        // - kfreebsd
         // - nacl
 
         pub inline fn isDarwin(tag: Tag) bool {