# std/build: fix ?\[:0\]const u8 build options · gitcafe/zig

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

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

Visibility: public

Requested revision: 38d8aab4d283efe2f43c7e18411f6df7e1c2d04b

Requested commit: 38d8aab4d283efe2f43c7e18411f6df7e1c2d04b

Commit: 38d8aab4d283efe2f43c7e18411f6df7e1c2d04b

Tree: 48f7cb8ce6b1ce46361b867c6ebe6a5646bea667

Author: Michael Holmes

Committer: Andrew Kelley

## Message

```
std/build: fix ?[:0]const u8 build options

As per the other string types, `?[:0]const u8` needs its own case
as otherwise it will raise an error about using `{}` with slices.

There's no reasonable workaround for this, as you would have to
either discount the use of the empty string value or manually
rework the string to be sentinel-terminated at runtime. It's
useful for passing build options to code making use of C libraries
that make strong use of sentinel-terminated arrays for strings.

```

## Parents

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

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