Closed paveloom closed 11 months ago
Seems you have crashed the compiler. A way to work around this is to use the stage1 compiler. This is done by either passing -fstage1
to zig build-exe
or setting the exe.stage1
field to true
in your build.zig
file.
I'll have a look around to see if this has been reported to zig
This is the bug it seems https://github.com/ziglang/zig/issues/13707
Update. Another issue that needs fixing https://github.com/ziglang/zig/issues/13779
So, here is an example from the tutorial, except I removed the
, --help
part from the first flag.Compiling this with Zig
v0.11.0-dev.251+7c527c6df
gives the following:I would expect this syntax to work, considering you have tests for this use case (which pass for me):
https://github.com/Hejsil/zig-clap/blob/dbc6b8e54ad753b0605feaeecc8e79dba3572ed3/clap.zig#L1770-L1816