diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-08-02 20:11:59 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-08-03 09:52:15 -0700 |
| commit | 7360927afe2157df7e697d2e4c56968dd605ea08 (patch) | |
| tree | 45408b199c570ba97891ae2c5812f9aba647c3b6 /src | |
| parent | c012f5d55dc59f80a3cd4fce22443a39fcbb67e9 (diff) | |
| download | zig-7360927afe2157df7e697d2e4c56968dd605ea08.tar.gz zig-7360927afe2157df7e697d2e4c56968dd605ea08.zip | |
CLI: add native paths only if ABI is also native
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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| { |
