Skip to content

Commit

Permalink
wasi: change default os version to 0.1.0
Browse files Browse the repository at this point in the history
This version represents "WASI Preview 1".

Closes #19581
  • Loading branch information
jacobly0 committed Apr 14, 2024
1 parent 533f54c commit 60d5001
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/std/Target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ pub const Os = struct {
.amdpal,
.hermit,
.hurd,
.wasi,
.emscripten,
.driverkit,
.shadermodel,
Expand All @@ -180,6 +179,7 @@ pub const Os = struct {
.openbsd,
.dragonfly,
.solaris,
.wasi,
=> .semver,

.linux => .linux,
Expand Down Expand Up @@ -377,7 +377,6 @@ pub const Os = struct {
.amdpal,
.hermit,
.hurd,
.wasi,
.emscripten,
.driverkit,
.shadermodel,
Expand Down Expand Up @@ -454,6 +453,12 @@ pub const Os = struct {
.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 = .{
Expand Down

0 comments on commit 60d5001

Please sign in to comment.