| ... | ... | @@ -2674,7 +2674,7 @@ fn buildOutputType( |
| 2674 | 2674 | // After this point, external_system_libs is used instead of system_libs. |
| 2675 | 2675 | |
| 2676 | 2676 | // Trigger native system library path detection if necessary. |
| 2677 | | if (sysroot == null and cross_target.isNativeOs() and |
| 2677 | if (sysroot == null and cross_target.isNativeOs() and cross_target.isNativeAbi() and |
| 2678 | 2678 | (external_system_libs.len != 0 or want_native_include_dirs)) |
| 2679 | 2679 | { |
| 2680 | 2680 | const paths = std.zig.system.NativePaths.detect(arena, target_info) catch |err| { |