zig icon indicating copy to clipboard operation
zig copied to clipboard

Documentation: Conditional Compilation section needs improvement.

Open WeeBull opened this issue 2 months ago • 0 comments

The section "Options for Conditional Compilation" mainly consists of a code example, with very little explaination. In particular it's not obvious what the difference between (very similarly named) std.Build.option() and std.Build.addOptions() is and why both are needed. The documentation comments in the standard library don't really help either.

Best explanation I found was this blog post.

WeeBull avatar Nov 18 '25 10:11 WeeBull