zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 08708ea4dc3885fba8843142e0e0804f65bf0d76 (tree)
parent cd58b400110586bb0d0632dce0f667efbc3dbd88
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Sat, 30 Sep 2017 20:10:09 -0400

fix typo in target_can_exec logic

Diffstat:
Msrc/target.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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