| ... | @@ -1090,6 +1090,11 @@ pub fn getExternalExecutor( | ... | @@ -1090,6 +1090,11 @@ pub fn getExternalExecutor( |
| 1090 | switch (candidate.target.os.tag) { | 1090 | switch (candidate.target.os.tag) { |
| 1091 | .windows => { | 1091 | .windows => { |
| 1092 | if (options.allow_wine) { | 1092 | if (options.allow_wine) { |
| | 1093 | // x86_64 wine does not support emulating aarch64-windows and |
| | 1094 | // vice versa. |
| | 1095 | if (candidate.target.cpu.arch != builtin.cpu.arch) { |
| | 1096 | return bad_result; |
| | 1097 | } |
| 1093 | switch (candidate.target.cpu.arch.ptrBitWidth()) { | 1098 | switch (candidate.target.cpu.arch.ptrBitWidth()) { |
| 1094 | 32 => return Executor{ .wine = "wine" }, | 1099 | 32 => return Executor{ .wine = "wine" }, |
| 1095 | 64 => return Executor{ .wine = "wine64" }, | 1100 | 64 => return Executor{ .wine = "wine64" }, |