mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.Build.Step.Compile: add support for '-z defs' flag
This commit is contained in:
parent
bd832ed39a
commit
2f240d0819
1 changed files with 7 additions and 0 deletions
|
|
@ -135,6 +135,9 @@ link_z_common_page_size: ?u64 = null,
|
|||
/// Maximum page size
|
||||
link_z_max_page_size: ?u64 = null,
|
||||
|
||||
/// Force a fatal error if any undefined symbols remain.
|
||||
link_z_defs: bool = false,
|
||||
|
||||
/// (Darwin) Install name for the dylib
|
||||
install_name: ?[]const u8 = null,
|
||||
|
||||
|
|
@ -1550,6 +1553,10 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 {
|
|||
try zig_args.append("-z");
|
||||
try zig_args.append(b.fmt("max-page-size={d}", .{size}));
|
||||
}
|
||||
if (compile.link_z_defs) {
|
||||
try zig_args.append("-z");
|
||||
try zig_args.append("defs");
|
||||
}
|
||||
|
||||
if (compile.libc_file) |libc_file| {
|
||||
try zig_args.append("--libc");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue