diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2020-12-15 19:30:00 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-08 20:07:59 -0700 |
| commit | e4b8148e9c0dc8e1e523965456a59d469e93a26c (patch) | |
| tree | 07f4da41e0fd295a45cee5530ba24edc63161c06 /src/main.zig | |
| parent | eb696e453ff770e54188e14acb65e01e87a4eebd (diff) | |
| download | zig-e4b8148e9c0dc8e1e523965456a59d469e93a26c.tar.gz zig-e4b8148e9c0dc8e1e523965456a59d469e93a26c.zip | |
Fix system library path detection on linux
Uses the NativeTargetInfo results instead of std.Target.current.
Diffstat (limited to 'src/main.zig')
| -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 668e601475..992581fe52 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1448,7 +1448,7 @@ fn buildOutputType( } if (cross_target.isNativeOs() and (system_libs.items.len != 0 or want_native_include_dirs)) { - const paths = std.zig.system.NativePaths.detect(arena) catch |err| { + const paths = std.zig.system.NativePaths.detect(arena, target_info) catch |err| { fatal("unable to detect native system paths: {s}", .{@errorName(err)}); }; for (paths.warnings.items) |warning| { |
