diff --git a/lib/std/zig/system.zig b/lib/std/zig/system.zig index 591e369ff763..f3c8359ffb15 100644 --- a/lib/std/zig/system.zig +++ b/lib/std/zig/system.zig @@ -127,7 +127,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()) {