mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 08:33:06 +00:00
std.zig.system.NativePaths: add NixOS lib dirs to the rpath
This commit is contained in:
parent
4debd4338c
commit
e517d5a51e
@ -59,6 +59,7 @@ pub fn detect(arena: Allocator, native_target: std.Target) !NativePaths {
|
||||
} else if (word.len > 2 and word[0] == '-' and word[1] == 'L') {
|
||||
const lib_path = word[2..];
|
||||
try self.addLibDir(lib_path);
|
||||
try self.addRPath(lib_path);
|
||||
} else {
|
||||
try self.addWarningFmt("Unrecognized C flag from NIX_LDFLAGS: {s}", .{word});
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user