mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
-fwine: allow 32-bit .exe's be run on backward-compatible 64-bit arches
Closes #22361.
This commit is contained in:
parent
40f5eac79c
commit
6a21d18adf
@ -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()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user