From 7360927afe2157df7e697d2e4c56968dd605ea08 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 2 Aug 2023 20:11:59 -0700 Subject: CLI: add native paths only if ABI is also native --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.zig b/src/main.zig index 3c7d2c85be..e3720cf903 100644 --- a/src/main.zig +++ b/src/main.zig @@ -2674,7 +2674,7 @@ fn buildOutputType( // After this point, external_system_libs is used instead of system_libs. // Trigger native system library path detection if necessary. - if (sysroot == null and cross_target.isNativeOs() and + if (sysroot == null and cross_target.isNativeOs() and cross_target.isNativeAbi() and (external_system_libs.len != 0 or want_native_include_dirs)) { const paths = std.zig.system.NativePaths.detect(arena, target_info) catch |err| { -- cgit v1.2.3