zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 60d5001ac86573eb05aeb25fdc6374b7dd4cc339 (tree)
parent 533f54c68ee18a910e348bf273a713842fdfd127
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date:   Sun, 14 Apr 2024 15:25:27 -0400

wasi: change default os version to `0.1.0`

This version represents "WASI Preview 1".

Closes #19581

Diffstat:
Mlib/std/Target.zig | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/std/Target.zig b/lib/std/Target.zig @@ -157,7 +157,6 @@ pub const Os = struct { .amdpal, .hermit, .hurd, - .wasi, .emscripten, .driverkit, .shadermodel, @@ -180,6 +179,7 @@ pub const Os = struct { .openbsd, .dragonfly, .solaris, + .wasi, => .semver, .linux => .linux, @@ -377,7 +377,6 @@ pub const Os = struct { .amdpal, .hermit, .hurd, - .wasi, .emscripten, .driverkit, .shadermodel, @@ -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 = .{