wasi: change default os version to 0.1.0

This version represents "WASI Preview 1".

Closes #19581
This commit is contained in:
Jacob Young 2024-04-14 15:25:27 -04:00
parent 533f54c68e
commit 60d5001ac8

View File

@ -157,7 +157,6 @@ pub const Os = struct {
.amdpal, .amdpal,
.hermit, .hermit,
.hurd, .hurd,
.wasi,
.emscripten, .emscripten,
.driverkit, .driverkit,
.shadermodel, .shadermodel,
@ -180,6 +179,7 @@ pub const Os = struct {
.openbsd, .openbsd,
.dragonfly, .dragonfly,
.solaris, .solaris,
.wasi,
=> .semver, => .semver,
.linux => .linux, .linux => .linux,
@ -377,7 +377,6 @@ pub const Os = struct {
.amdpal, .amdpal,
.hermit, .hermit,
.hurd, .hurd,
.wasi,
.emscripten, .emscripten,
.driverkit, .driverkit,
.shadermodel, .shadermodel,
@ -454,6 +453,12 @@ pub const Os = struct {
.max = .{ .major = 5, .minor = 11, .patch = 0 }, .max = .{ .major = 5, .minor = 11, .patch = 0 },
}, },
}, },
.wasi => .{
.semver = .{
.min = .{ .major = 0, .minor = 1, .patch = 0 },
.max = .{ .major = 0, .minor = 1, .patch = 0 },
},
},
.linux => .{ .linux => .{
.linux = .{ .linux = .{