commit 7360927afe2157df7e697d2e4c56968dd605ea08 (tree)
parent c012f5d55dc59f80a3cd4fce22443a39fcbb67e9
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 2 Aug 2023 20:11:59 -0700
CLI: add native paths only if ABI is also native
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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| {