Open lbirkert opened 7 months ago
The code that puts the declaration right inside the struct lies within here: https://github.com/ziglang/zig/blob/master/lib/std/Build/Step/Options.zig#L245
I am unsure whether defining such type declarations inside a struct is planned (for that the module would work as expected and we would only have to wait for an implementation), or whether putting the declaration inside the struct is a mistake.
Zig Version
0.12.0-dev.3597+d979df585
Steps to Reproduce and Observed Behavior
crashes with
options.zig:
neofetch:
Expected Behavior
One should be able to pass structs as build options. The zig compiler seems to currently generate faulty code in the options.zig file. I believe the declaration of the struct should happen earlier in the file. Expected code: