Skip to content

std.Build.Step.Options: Fix incorrect generated code #24057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

chadwain
Copy link
Contributor

@chadwain chadwain commented Jun 2, 2025

Fixes, or adds support for, using the following types in std.Build.Step.Options:

  • enums, including non-exhaustive
  • tagged unions
  • comptime_float
  • structs/tuples
  • slices/arrays of all supported types

Also, preserve struct/union field attributes.

Fixes #19656
Fixes #19594
Alternative to #21122

@chadwain chadwain force-pushed the fix-std-build-options branch from 2501b27 to 547f209 Compare June 2, 2025 21:42
@chadwain chadwain force-pushed the fix-std-build-options branch 2 times, most recently from 44783c2 to 8bfc203 Compare June 6, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arrays of Types in Build Step Options Results in Badly Generated Code Build options: passing structs fails
1 participant