We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a090ef0 commit 1a82cceCopy full SHA for 1a82cce
lib/std/Target.zig
@@ -540,7 +540,19 @@ pub const Os = struct {
540
},
541
.netbsd => .{
542
.semver = .{
543
- .min = .{ .major = 9, .minor = 4, .patch = 0 },
+ .min = blk: {
544
+ const default_min: std.SemanticVersion = .{ .major = 9, .minor = 4, .patch = 0 };
545
+
546
+ for (std.zig.target.available_libcs) |libc| {
547
+ if (libc.arch != arch or libc.os != tag or libc.abi != abi) continue;
548
549
+ if (libc.os_ver) |min| {
550
+ if (min.order(default_min) == .gt) break :blk min;
551
+ }
552
553
554
+ break :blk default_min;
555
+ },
556
.max = .{ .major = 10, .minor = 1, .patch = 0 },
557
558
0 commit comments