aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2024-08-30 14:59:52 +0200
committerAndrew Kelley <andrew@ziglang.org>2024-09-19 18:20:21 -0700
commit3acf997692ddb1cbaeb448cc4c5fd3dbdc25f6a6 (patch)
tree3ec2525f8ca6feeddad680f703415c4e6b70322c
parent0082475ddb128c27116634e72ffe70072b6476d1 (diff)
downloadzig-3acf997692ddb1cbaeb448cc4c5fd3dbdc25f6a6.tar.gz
zig-3acf997692ddb1cbaeb448cc4c5fd3dbdc25f6a6.zip
link.Wasm.Feature: Update to mirror std.Target.wasm.
-rw-r--r--src/link/Wasm/types.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/link/Wasm/types.zig b/src/link/Wasm/types.zig
index 0f9362b8c3..93b6835eae 100644
--- a/src/link/Wasm/types.zig
+++ b/src/link/Wasm/types.zig
@@ -195,6 +195,7 @@ pub const Feature = struct {
bulk_memory,
exception_handling,
extended_const,
+ half_precision,
multimemory,
multivalue,
mutable_globals,
@@ -219,6 +220,7 @@ pub const Feature = struct {
.bulk_memory => "bulk-memory",
.exception_handling => "exception-handling",
.extended_const => "extended-const",
+ .half_precision => "half-precision",
.multimemory => "multimemory",
.multivalue => "multivalue",
.mutable_globals => "mutable-globals",
@@ -251,6 +253,8 @@ pub const known_features = std.StaticStringMap(Feature.Tag).initComptime(.{
.{ "bulk-memory", .bulk_memory },
.{ "exception-handling", .exception_handling },
.{ "extended-const", .extended_const },
+ .{ "half-precision", .half_precision },
+ .{ "multimemory", .multimemory },
.{ "multivalue", .multivalue },
.{ "mutable-globals", .mutable_globals },
.{ "nontrapping-fptoint", .nontrapping_fptoint },