diff options
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/zig/system.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/std/zig/system.zig b/lib/std/zig/system.zig index 6d1f44bfa0..f57bb44d72 100644 --- a/lib/std/zig/system.zig +++ b/lib/std/zig/system.zig @@ -130,7 +130,10 @@ pub fn getExternalExecutor( if (options.allow_wine) { // x86_64 wine does not support emulating aarch64-windows and // vice versa. - if (candidate.cpu.arch != builtin.cpu.arch) { + if (candidate.cpu.arch != builtin.cpu.arch and + !(candidate.cpu.arch == .thumb and builtin.cpu.arch == .aarch64) and + !(candidate.cpu.arch == .x86 and builtin.cpu.arch == .x86_64)) + { return bad_result; } switch (candidate.ptrBitWidth()) { |
