Commit 6cbd1ac51a

Andrew Kelley <andrew@ziglang.org>
2020-03-04 21:34:32
zig is now aware of DragonflyBSD versions
1 parent 3ff2381
Changed files (2)
lib/std/zig/cross_target.zig
@@ -102,7 +102,6 @@ pub const CrossTarget = struct {
             .freestanding,
             .ananas,
             .cloudabi,
-            .dragonfly,
             .fuchsia,
             .kfreebsd,
             .lv2,
@@ -135,10 +134,11 @@ pub const CrossTarget = struct {
             .freebsd,
             .macosx,
             .ios,
-            .netbsd,
-            .openbsd,
             .tvos,
             .watchos,
+            .netbsd,
+            .openbsd,
+            .dragonfly,
             => {
                 self.os_version_min = .{ .semver = os.version_range.semver.min };
                 self.os_version_max = .{ .semver = os.version_range.semver.max };
@@ -677,9 +677,7 @@ pub const CrossTarget = struct {
             .freestanding,
             .ananas,
             .cloudabi,
-            .dragonfly,
             .fuchsia,
-            .ios,
             .kfreebsd,
             .lv2,
             .solaris,
@@ -694,8 +692,6 @@ pub const CrossTarget = struct {
             .amdhsa,
             .ps4,
             .elfiamcu,
-            .tvos,
-            .watchos,
             .mesa3d,
             .contiki,
             .amdpal,
@@ -709,9 +705,13 @@ pub const CrossTarget = struct {
 
             .freebsd,
             .macosx,
+            .ios,
+            .tvos,
+            .watchos,
             .netbsd,
             .openbsd,
             .linux,
+            .dragonfly,
             => {
                 var range_it = mem.separate(version_text, "...");
 
lib/std/target.zig
@@ -146,7 +146,6 @@ pub const Target = struct {
                     .freestanding,
                     .ananas,
                     .cloudabi,
-                    .dragonfly,
                     .fuchsia,
                     .kfreebsd,
                     .lv2,
@@ -215,6 +214,12 @@ pub const Target = struct {
                             .max = .{ .major = 6, .minor = 6 },
                         },
                     },
+                    .dragonfly => return .{
+                        .semver = .{
+                            .min = .{ .major = 5, .minor = 8 },
+                            .max = .{ .major = 5, .minor = 8 },
+                        },
+                    },
 
                     .linux => return .{
                         .linux = .{