diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-04-11 16:37:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-11 16:37:46 -0400 |
| commit | 4e700fdf8ed01e7fc856e631ceffd6006e6f48df (patch) | |
| tree | 98a476316d9427be65779edaf6c27468f0e12ccc /lib/std/Build | |
| parent | 65bd8d52c8260ad8b5d37285b1d29c1516676c01 (diff) | |
| parent | 1a5dcff8e440fab2d7e9bdefe646ba3943fc122a (diff) | |
| download | zig-4e700fdf8ed01e7fc856e631ceffd6006e6f48df.tar.gz zig-4e700fdf8ed01e7fc856e631ceffd6006e6f48df.zip | |
Merge pull request #22516 from Jan200101/PR/build_id_option
std.Build: add build-id option
Diffstat (limited to 'lib/std/Build')
| -rw-r--r-- | lib/std/Build/Step/Compile.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig index 2515893384..ff6e766c58 100644 --- a/lib/std/Build/Step/Compile.zig +++ b/lib/std/Build/Step/Compile.zig @@ -1694,7 +1694,7 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 { try addFlag(&zig_args, "each-lib-rpath", compile.each_lib_rpath); - if (compile.build_id) |build_id| { + if (compile.build_id orelse b.build_id) |build_id| { try zig_args.append(switch (build_id) { .hexstring => |hs| b.fmt("--build-id=0x{s}", .{ std.fmt.fmtSliceHexLower(hs.toSlice()), |
