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 {...@@ -267,10 +267,11 @@ pub const Os = struct {
267 win11_zn = 0x0A00000E, //aka win11_21h2267 win11_zn = 0x0A00000E, //aka win11_21h2
268 win11_ga = 0x0A00000F, //aka win11_22h2268 win11_ga = 0x0A00000F, //aka win11_22h2
269 win11_ge = 0x0A000010, //aka win11_23h2269 win11_ge = 0x0A000010, //aka win11_23h2
270 win11_dt = 0x0A000011, //aka win11_24h2
270 _,271 _,
271272
272 /// Latest Windows version that the Zig Standard Library is aware of273 /// 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
275 /// Compared against build numbers reported by the runtime to distinguish win10 versions,276 /// Compared against build numbers reported by the runtime to distinguish win10 versions,
276 /// where 0x0A000000 + index corresponds to the WindowsVersion u32 value.277 /// where 0x0A000000 + index corresponds to the WindowsVersion u32 value.
...@@ -292,6 +293,7 @@ pub const Os = struct {...@@ -292,6 +293,7 @@ pub const Os = struct {
292 22000, //win11_zn aka win11_21h2293 22000, //win11_zn aka win11_21h2
293 22621, //win11_ga aka win11_22h2294 22621, //win11_ga aka win11_22h2
294 22631, //win11_ge aka win11_23h2295 22631, //win11_ge aka win11_23h2
296 26100, //win11_dt aka win11_24h2
295 };297 };
296298
297 /// Returns whether the first version `ver` is newer (greater) than or equal to the second version `ver`.299 /// 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 {...@@ -443,7 +445,7 @@ pub const Os = struct {
443 .linux = .{445 .linux = .{
444 .range = .{446 .range = .{
445 .min = .{ .major = 4, .minor = 19, .patch = 0 },447 .min = .{ .major = 4, .minor = 19, .patch = 0 },
446 .max = .{ .major = 6, .minor = 10, .patch = 3 },448 .max = .{ .major = 6, .minor = 11, .patch = 5 },
447 },449 },
448 .glibc = blk: {450 .glibc = blk: {
449 const default_min: std.SemanticVersion = .{ .major = 2, .minor = 28, .patch = 0 };451 const default_min: std.SemanticVersion = .{ .major = 2, .minor = 28, .patch = 0 };
...@@ -472,7 +474,7 @@ pub const Os = struct {...@@ -472,7 +474,7 @@ pub const Os = struct {
472 .freebsd => .{474 .freebsd => .{
473 .semver = .{475 .semver = .{
474 .min = .{ .major = 12, .minor = 0, .patch = 0 },476 .min = .{ .major = 12, .minor = 0, .patch = 0 },
475 .max = .{ .major = 14, .minor = 0, .patch = 0 },477 .max = .{ .major = 14, .minor = 1, .patch = 0 },
476 },478 },
477 },479 },
478 .netbsd => .{480 .netbsd => .{
...@@ -484,44 +486,44 @@ pub const Os = struct {...@@ -484,44 +486,44 @@ pub const Os = struct {
484 .openbsd => .{486 .openbsd => .{
485 .semver = .{487 .semver = .{
486 .min = .{ .major = 7, .minor = 3, .patch = 0 },488 .min = .{ .major = 7, .minor = 3, .patch = 0 },
487 .max = .{ .major = 7, .minor = 5, .patch = 0 },489 .max = .{ .major = 7, .minor = 6, .patch = 0 },
488 },490 },
489 },491 },
490492
491 .driverkit => .{493 .driverkit => .{
492 .semver = .{494 .semver = .{
493 .min = .{ .major = 19, .minor = 0, .patch = 0 },495 .min = .{ .major = 19, .minor = 0, .patch = 0 },
494 .max = .{ .major = 24, .minor = 0, .patch = 0 },496 .max = .{ .major = 24, .minor = 2, .patch = 0 },
495 },497 },
496 },498 },
497 .macos => .{499 .macos => .{
498 .semver = .{500 .semver = .{
499 .min = .{ .major = 11, .minor = 7, .patch = 1 },501 .min = .{ .major = 11, .minor = 7, .patch = 1 },
500 .max = .{ .major = 14, .minor = 6, .patch = 1 },502 .max = .{ .major = 15, .minor = 2, .patch = 0 },
501 },503 },
502 },504 },
503 .ios => .{505 .ios => .{
504 .semver = .{506 .semver = .{
505 .min = .{ .major = 12, .minor = 0, .patch = 0 },507 .min = .{ .major = 12, .minor = 0, .patch = 0 },
506 .max = .{ .major = 17, .minor = 6, .patch = 1 },508 .max = .{ .major = 18, .minor = 1, .patch = 0 },
507 },509 },
508 },510 },
509 .tvos => .{511 .tvos => .{
510 .semver = .{512 .semver = .{
511 .min = .{ .major = 13, .minor = 0, .patch = 0 },513 .min = .{ .major = 13, .minor = 0, .patch = 0 },
512 .max = .{ .major = 17, .minor = 6, .patch = 0 },514 .max = .{ .major = 18, .minor = 1, .patch = 0 },
513 },515 },
514 },516 },
515 .visionos => .{517 .visionos => .{
516 .semver = .{518 .semver = .{
517 .min = .{ .major = 1, .minor = 0, .patch = 0 },519 .min = .{ .major = 1, .minor = 0, .patch = 0 },
518 .max = .{ .major = 1, .minor = 3, .patch = 0 },520 .max = .{ .major = 2, .minor = 1, .patch = 0 },
519 },521 },
520 },522 },
521 .watchos => .{523 .watchos => .{
522 .semver = .{524 .semver = .{
523 .min = .{ .major = 6, .minor = 0, .patch = 0 },525 .min = .{ .major = 6, .minor = 0, .patch = 0 },
524 .max = .{ .major = 10, .minor = 6, .patch = 0 },526 .max = .{ .major = 11, .minor = 1, .patch = 0 },
525 },527 },
526 },528 },
527529
...@@ -542,7 +544,7 @@ pub const Os = struct {...@@ -542,7 +544,7 @@ pub const Os = struct {
542 .wasi => .{544 .wasi => .{
543 .semver = .{545 .semver = .{
544 .min = .{ .major = 0, .minor = 1, .patch = 0 },546 .min = .{ .major = 0, .minor = 1, .patch = 0 },
545 .max = .{ .major = 0, .minor = 1, .patch = 0 },547 .max = .{ .major = 0, .minor = 2, .patch = 2 },
546 },548 },
547 },549 },
548 };550 };