mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
zig build: add each_lib_rpath property
Maps to `-feach-lib-rpath` and `-fno-each-lib-rpath`. Closes #8800
This commit is contained in:
parent
755eeb7be0
commit
d43ebf562d
@ -1487,6 +1487,7 @@ pub const LibExeObjStep = struct {
|
||||
libc_file: ?FileSource = null,
|
||||
|
||||
valgrind_support: ?bool = null,
|
||||
each_lib_rpath: ?bool = null,
|
||||
|
||||
/// Create a .eh_frame_hdr section and a PT_GNU_EH_FRAME segment in the ELF
|
||||
/// file.
|
||||
@ -2681,6 +2682,14 @@ pub const LibExeObjStep = struct {
|
||||
}
|
||||
}
|
||||
|
||||
if (self.each_lib_rpath) |each_lib_rpath| {
|
||||
if (each_lib_rpath) {
|
||||
try zig_args.append("-feach-lib-rpath");
|
||||
} else {
|
||||
try zig_args.append("-fno-each-lib-rpath");
|
||||
}
|
||||
}
|
||||
|
||||
if (self.override_lib_dir) |dir| {
|
||||
try zig_args.append("--zig-lib-dir");
|
||||
try zig_args.append(builder.pathFromRoot(dir));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user