diff options
| author | Michael Holmes <i.am@ceph3.us> | 2021-04-05 22:54:04 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-06 11:09:54 -0700 |
| commit | 38d8aab4d283efe2f43c7e18411f6df7e1c2d04b (patch) | |
| tree | 48f7cb8ce6b1ce46361b867c6ebe6a5646bea667 /src/codegen/c.zig | |
| parent | 89df41e5d859fcd53863c9f707e8c697b794148c (diff) | |
| download | zig-38d8aab4d283efe2f43c7e18411f6df7e1c2d04b.tar.gz zig-38d8aab4d283efe2f43c7e18411f6df7e1c2d04b.zip | |
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.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions
