| author | |
| committer | |
| log | 6a21d18adfe9ae4ff7f4beacbd4faed4d04832b8 |
| tree | 93e409b25eaea920cf8063ea9ffb2af48b30f365 |
| parent | 40f5eac79c8491e2e9ac0861e18872d6ba5b3b0b |
Closes #22361.1 files changed, 4 insertions(+), 1 deletions(-)
lib/std/zig/system.zig+4-1| ... | ... | @@ -130,7 +130,10 @@ pub fn getExternalExecutor( |
| 130 | 130 | if (options.allow_wine) { |
| 131 | 131 | // x86_64 wine does not support emulating aarch64-windows and |
| 132 | 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 | 137 | return bad_result; |
| 135 | 138 | } |
| 136 | 139 | switch (candidate.ptrBitWidth()) { |