We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeaa1b1 commit 0e3609bCopy full SHA for 0e3609b
lib/std/Target.zig
@@ -522,7 +522,19 @@ pub const Os = struct {
522
},
523
.freebsd => .{
524
.semver = .{
525
- .min = .{ .major = 13, .minor = 4, .patch = 0 },
+ .min = blk: {
526
+ const default_min: std.SemanticVersion = .{ .major = 13, .minor = 4, .patch = 0 };
527
+
528
+ for (std.zig.target.available_libcs) |libc| {
529
+ if (libc.arch != arch or libc.os != tag or libc.abi != abi) continue;
530
531
+ if (libc.os_ver) |min| {
532
+ if (min.order(default_min) == .gt) break :blk min;
533
+ }
534
535
536
+ break :blk default_min;
537
+ },
538
.max = .{ .major = 14, .minor = 2, .patch = 0 },
539
540
0 commit comments