# tweaks to \-\-build-id · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/728ce2d7c18e23ca6c36d86f4ee1ea4ce3ac81e2)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 728ce2d7c18e23ca6c36d86f4ee1ea4ce3ac81e2

Requested commit: 728ce2d7c18e23ca6c36d86f4ee1ea4ce3ac81e2

Commit: 728ce2d7c18e23ca6c36d86f4ee1ea4ce3ac81e2

Tree: b84ffae450a01a7fa2cf22d87176fb633125b359

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
tweaks to --build-id

 * build.zig: the result of b.option() can be assigned directly in many
   cases thanks to the return type being an optional
 * std.Build: make the build system aware of the
   std.Build.Step.Compile.BuildId type when used as an option.
   - remove extraneous newlines in error logs
 * simplify caching logic
 * simplify hexstring parsing tests and use a doc test
 * simplify hashing logic. don't use an optional when the `none` tag
   already provides this meaning.
 * CLI: fix incorrect linker arg parsing

```

## Parents

- [df5085bde012773b974f58e8ee28ed90ff686468](https://git.cafe/gitcafe/zig/commit/df5085bde012773b974f58e8ee28ed90ff686468?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/728ce2d7c18e23ca6c36d86f4ee1ea4ce3ac81e2?format=markdown)
