| ... | @@ -483,7 +483,21 @@ pub const Os = struct { | ... | @@ -483,7 +483,21 @@ pub const Os = struct { |
| 483 | .min = .{ .major = 4, .minor = 19, .patch = 0 }, | 483 | .min = .{ .major = 4, .minor = 19, .patch = 0 }, |
| 484 | .max = .{ .major = 6, .minor = 5, .patch = 7 }, | 484 | .max = .{ .major = 6, .minor = 5, .patch = 7 }, |
| 485 | }, | 485 | }, |
| 486 | .glibc = .{ .major = 2, .minor = 28, .patch = 0 }, | 486 | .glibc = blk: { |
| | 487 | const default_min = .{ .major = 2, .minor = 28, .patch = 0 }; |
| | 488 | |
| | 489 | for (std.zig.target.available_libcs) |libc| { |
| | 490 | // We don't know the ABI here. We can get away with not checking it |
| | 491 | // for now, but that may not always remain true. |
| | 492 | if (libc.os != tag or libc.arch != arch) continue; |
| | 493 | |
| | 494 | if (libc.glibc_min) |min| { |
| | 495 | if (min.order(default_min) == .gt) break :blk min; |
| | 496 | } |
| | 497 | } |
| | 498 | |
| | 499 | break :blk default_min; |
| | 500 | }, |
| 487 | }, | 501 | }, |
| 488 | }, | 502 | }, |
| 489 | | 503 | |