| ... | @@ -274,7 +274,8 @@ pub const NativeTargetInfo = struct { | ... | @@ -274,7 +274,8 @@ pub const NativeTargetInfo = struct { |
| 274 | const is_linux = Target.current.os.tag == .linux; | 274 | const is_linux = Target.current.os.tag == .linux; |
| 275 | const have_all_info = cross_target.dynamic_linker.get() != null and | 275 | const have_all_info = cross_target.dynamic_linker.get() != null and |
| 276 | cross_target.abi != null and (!is_linux or cross_target.abi.?.isGnu()); | 276 | cross_target.abi != null and (!is_linux or cross_target.abi.?.isGnu()); |
| 277 | if (!native_target_has_ld or have_all_info) { | 277 | const os_is_non_native = cross_target.os_tag != null; |
| | 278 | if (!native_target_has_ld or have_all_info or os_is_non_native) { |
| 278 | return defaultAbiAndDynamicLinker(cpu, os, cross_target); | 279 | return defaultAbiAndDynamicLinker(cpu, os, cross_target); |
| 279 | } | 280 | } |
| 280 | // The current target's ABI cannot be relied on for this. For example, we may build the zig | 281 | // The current target's ABI cannot be relied on for this. For example, we may build the zig |