authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-02 20:11:59-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-03 09:52:15-07:00
log7360927afe2157df7e697d2e4c56968dd605ea08
tree45408b199c570ba97891ae2c5812f9aba647c3b6
parentc012f5d55dc59f80a3cd4fce22443a39fcbb67e9

CLI: add native paths only if ABI is also native


1 files changed, 1 insertions(+), 1 deletions(-)

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