aboutsummaryrefslogtreecommitdiff
path: root/lib/std/target.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/target.zig')
-rw-r--r--lib/std/target.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/std/target.zig b/lib/std/target.zig
index 5c0ac3d905..9652d5b6e5 100644
--- a/lib/std/target.zig
+++ b/lib/std/target.zig
@@ -611,6 +611,7 @@ pub const Target = union(enum) {
native,
qemu: []const u8,
wine: []const u8,
+ wasmtime: []const u8,
unavailable,
};
@@ -649,6 +650,13 @@ pub const Target = union(enum) {
}
}
+ if (self.isWasm()) {
+ switch (self.getArchPtrBitWidth()) {
+ 32 => return Executor{ .wasmtime = "wasmtime" },
+ else => return .unavailable,
+ }
+ }
+
return .unavailable;
}
};