Commit c3f2222a59
Changed files (1)
lib
std
zig
lib/std/zig/system.zig
@@ -125,6 +125,10 @@ pub fn getExternalExecutor(
};
}
+ if (options.allow_wasmtime and candidate.cpu.arch.isWasm()) {
+ return Executor{ .wasmtime = "wasmtime" };
+ }
+
switch (candidate.os.tag) {
.windows => {
if (options.allow_wine) {
@@ -142,15 +146,6 @@ pub fn getExternalExecutor(
}
return bad_result;
},
- .wasi => {
- if (options.allow_wasmtime) {
- switch (candidate.ptrBitWidth()) {
- 32 => return Executor{ .wasmtime = "wasmtime" },
- else => return bad_result,
- }
- }
- return bad_result;
- },
.macos => {
if (options.allow_darling) {
// This check can be loosened once darling adds a QEMU-based emulation