mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
CLI: add native paths only if ABI is also native
This commit is contained in:
parent
c012f5d55d
commit
7360927afe
1 changed files with 1 additions and 1 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue