authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-30 08:04:14+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-01 06:23:59+01:00
loged68083d8f286f7df7b33865b96e4decbda7b864
treec5842ce848a9b8aac9db5c1e402803a513c4f2f8
parentace26004a3a3cd6ac41e10e7e1fca2922952bf4b
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Update known OS max versions.


1 files changed, 13 insertions(+), 11 deletions(-)

lib/std/Target.zig+13-11
......@@ -267,10 +267,11 @@ pub const Os = struct {
267267 win11_zn = 0x0A00000E, //aka win11_21h2
268268 win11_ga = 0x0A00000F, //aka win11_22h2
269269 win11_ge = 0x0A000010, //aka win11_23h2
270 win11_dt = 0x0A000011, //aka win11_24h2
270271 _,
271272
272273 /// Latest Windows version that the Zig Standard Library is aware of
273 pub const latest = WindowsVersion.win11_ge;
274 pub const latest = WindowsVersion.win11_dt;
274275
275276 /// Compared against build numbers reported by the runtime to distinguish win10 versions,
276277 /// where 0x0A000000 + index corresponds to the WindowsVersion u32 value.
......@@ -292,6 +293,7 @@ pub const Os = struct {
292293 22000, //win11_zn aka win11_21h2
293294 22621, //win11_ga aka win11_22h2
294295 22631, //win11_ge aka win11_23h2
296 26100, //win11_dt aka win11_24h2
295297 };
296298
297299 /// Returns whether the first version `ver` is newer (greater) than or equal to the second version `ver`.
......@@ -443,7 +445,7 @@ pub const Os = struct {
443445 .linux = .{
444446 .range = .{
445447 .min = .{ .major = 4, .minor = 19, .patch = 0 },
446 .max = .{ .major = 6, .minor = 10, .patch = 3 },
448 .max = .{ .major = 6, .minor = 11, .patch = 5 },
447449 },
448450 .glibc = blk: {
449451 const default_min: std.SemanticVersion = .{ .major = 2, .minor = 28, .patch = 0 };
......@@ -472,7 +474,7 @@ pub const Os = struct {
472474 .freebsd => .{
473475 .semver = .{
474476 .min = .{ .major = 12, .minor = 0, .patch = 0 },
475 .max = .{ .major = 14, .minor = 0, .patch = 0 },
477 .max = .{ .major = 14, .minor = 1, .patch = 0 },
476478 },
477479 },
478480 .netbsd => .{
......@@ -484,44 +486,44 @@ pub const Os = struct {
484486 .openbsd => .{
485487 .semver = .{
486488 .min = .{ .major = 7, .minor = 3, .patch = 0 },
487 .max = .{ .major = 7, .minor = 5, .patch = 0 },
489 .max = .{ .major = 7, .minor = 6, .patch = 0 },
488490 },
489491 },
490492
491493 .driverkit => .{
492494 .semver = .{
493495 .min = .{ .major = 19, .minor = 0, .patch = 0 },
494 .max = .{ .major = 24, .minor = 0, .patch = 0 },
496 .max = .{ .major = 24, .minor = 2, .patch = 0 },
495497 },
496498 },
497499 .macos => .{
498500 .semver = .{
499501 .min = .{ .major = 11, .minor = 7, .patch = 1 },
500 .max = .{ .major = 14, .minor = 6, .patch = 1 },
502 .max = .{ .major = 15, .minor = 2, .patch = 0 },
501503 },
502504 },
503505 .ios => .{
504506 .semver = .{
505507 .min = .{ .major = 12, .minor = 0, .patch = 0 },
506 .max = .{ .major = 17, .minor = 6, .patch = 1 },
508 .max = .{ .major = 18, .minor = 1, .patch = 0 },
507509 },
508510 },
509511 .tvos => .{
510512 .semver = .{
511513 .min = .{ .major = 13, .minor = 0, .patch = 0 },
512 .max = .{ .major = 17, .minor = 6, .patch = 0 },
514 .max = .{ .major = 18, .minor = 1, .patch = 0 },
513515 },
514516 },
515517 .visionos => .{
516518 .semver = .{
517519 .min = .{ .major = 1, .minor = 0, .patch = 0 },
518 .max = .{ .major = 1, .minor = 3, .patch = 0 },
520 .max = .{ .major = 2, .minor = 1, .patch = 0 },
519521 },
520522 },
521523 .watchos => .{
522524 .semver = .{
523525 .min = .{ .major = 6, .minor = 0, .patch = 0 },
524 .max = .{ .major = 10, .minor = 6, .patch = 0 },
526 .max = .{ .major = 11, .minor = 1, .patch = 0 },
525527 },
526528 },
527529
......@@ -542,7 +544,7 @@ pub const Os = struct {
542544 .wasi => .{
543545 .semver = .{
544546 .min = .{ .major = 0, .minor = 1, .patch = 0 },
545 .max = .{ .major = 0, .minor = 1, .patch = 0 },
547 .max = .{ .major = 0, .minor = 2, .patch = 2 },
546548 },
547549 },
548550 };