| ... | @@ -125,6 +125,10 @@ pub fn getExternalExecutor( | ... | @@ -125,6 +125,10 @@ pub fn getExternalExecutor( |
| 125 | }; | 125 | }; |
| 126 | } | 126 | } |
| 127 | | 127 | |
| | 128 | if (options.allow_wasmtime and candidate.cpu.arch.isWasm()) { |
| | 129 | return Executor{ .wasmtime = "wasmtime" }; |
| | 130 | } |
| | 131 | |
| 128 | switch (candidate.os.tag) { | 132 | switch (candidate.os.tag) { |
| 129 | .windows => { | 133 | .windows => { |
| 130 | if (options.allow_wine) { | 134 | if (options.allow_wine) { |
| ... | @@ -142,15 +146,6 @@ pub fn getExternalExecutor( | ... | @@ -142,15 +146,6 @@ pub fn getExternalExecutor( |
| 142 | } | 146 | } |
| 143 | return bad_result; | 147 | return bad_result; |
| 144 | }, | 148 | }, |
| 145 | .wasi => { | | |
| 146 | if (options.allow_wasmtime) { | | |
| 147 | switch (candidate.ptrBitWidth()) { | | |
| 148 | 32 => return Executor{ .wasmtime = "wasmtime" }, | | |
| 149 | else => return bad_result, | | |
| 150 | } | | |
| 151 | } | | |
| 152 | return bad_result; | | |
| 153 | }, | | |
| 154 | .macos => { | 149 | .macos => { |
| 155 | if (options.allow_darling) { | 150 | if (options.allow_darling) { |
| 156 | // This check can be loosened once darling adds a QEMU-based emulation | 151 | // This check can be loosened once darling adds a QEMU-based emulation |