| ... | @@ -130,7 +130,10 @@ pub fn getExternalExecutor( | ... | @@ -130,7 +130,10 @@ pub fn getExternalExecutor( |
| 130 | if (options.allow_wine) { | 130 | if (options.allow_wine) { |
| 131 | // x86_64 wine does not support emulating aarch64-windows and | 131 | // x86_64 wine does not support emulating aarch64-windows and |
| 132 | // vice versa. | 132 | // vice versa. |
| 133 | if (candidate.cpu.arch != builtin.cpu.arch) { | 133 | if (candidate.cpu.arch != builtin.cpu.arch and |
| | 134 | !(candidate.cpu.arch == .thumb and builtin.cpu.arch == .aarch64) and |
| | 135 | !(candidate.cpu.arch == .x86 and builtin.cpu.arch == .x86_64)) |
| | 136 | { |
| 134 | return bad_result; | 137 | return bad_result; |
| 135 | } | 138 | } |
| 136 | switch (candidate.ptrBitWidth()) { | 139 | switch (candidate.ptrBitWidth()) { |