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 /src | |
| 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 'src')
| -rw-r--r-- | src/main.zig | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index 9a4fd1112e..28e87e78eb 100644 --- a/src/main.zig +++ b/src/main.zig @@ -580,10 +580,13 @@ const usage_build_generic = \\ -fno-allow-shlib-undefined Disallows undefined symbols in shared libraries \\ -fallow-so-scripts Allows .so files to be GNU ld scripts \\ -fno-allow-so-scripts (default) .so files must be ELF files - \\ --build-id[=style] At a minor link-time expense, coordinates stripped binaries - \\ fast, uuid, sha1, md5 with debug symbols via a '.note.gnu.build-id' section - \\ 0x[hexstring] Maximum 32 bytes - \\ none (default) Disable build-id + \\ --build-id[=style] At a minor link-time expense, embeds a build ID in binaries + \\ fast 8-byte non-cryptographic hash (COFF, ELF, WASM) + \\ sha1, tree 20-byte cryptographic hash (ELF, WASM) + \\ md5 16-byte cryptographic hash (ELF) + \\ uuid 16-byte random UUID (ELF, WASM) + \\ 0x[hexstring] Constant ID, maximum 32 bytes (ELF, WASM) + \\ none (default) No build ID \\ --eh-frame-hdr Enable C++ exception handling by passing --eh-frame-hdr to linker \\ --no-eh-frame-hdr Disable C++ exception handling by passing --no-eh-frame-hdr to linker \\ --emit-relocs Enable output of relocation sections for post build tools |
