diff --git a/src/target.cpp b/src/target.cpp index 68969b3821453fb5a1a9dad582a911b8e4ad2c0b..de7509f4ae4d7bd88f352101ce1a0156ea7f8b96 100644 --- a/src/target.cpp +++ b/src/target.cpp @@ -656,7 +656,7 @@ bool target_can_exec(const ZigTarget *host_target, const ZigTarget *guest_target return true; } - if (guest_target->os == ZigLLVM_Win32 && guest_target->os == ZigLLVM_Win32 && + if (guest_target->os == ZigLLVM_Win32 && host_target->os == ZigLLVM_Win32 && host_target->arch.arch == ZigLLVM_x86_64 && guest_target->arch.arch == ZigLLVM_x86) { // 64-bit windows can run 32-bit programs