| ... | ... | @@ -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 | 132 | switch (candidate.os.tag) { |
| 129 | 133 | .windows => { |
| 130 | 134 | if (options.allow_wine) { |
| ... | ... | @@ -142,15 +146,6 @@ pub fn getExternalExecutor( |
| 142 | 146 | } |
| 143 | 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 | 149 | .macos => { |
| 155 | 150 | if (options.allow_darling) { |
| 156 | 151 | // This check can be loosened once darling adds a QEMU-based emulation |