aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorMichael Holmes <i.am@ceph3.us>2021-04-05 22:54:04 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-04-06 11:09:54 -0700
commit38d8aab4d283efe2f43c7e18411f6df7e1c2d04b (patch)
tree48f7cb8ce6b1ce46361b867c6ebe6a5646bea667 /src/type.zig
parent89df41e5d859fcd53863c9f707e8c697b794148c (diff)
downloadzig-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/type.zig')
0 files changed, 0 insertions, 0 deletions