zig is now aware of DragonflyBSD versions

This commit is contained in:
Andrew Kelley 2020-03-04 15:34:32 -05:00
parent 3ff2381042
commit 6cbd1ac51a
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
2 changed files with 13 additions and 8 deletions

View File

@ -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 = .{

View File

@ -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, "...");