Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Improve std.build.OptionsStep#13408

Closed
InKryption wants to merge 0 commit intoziglang:masterziglang/zig:masterfrom
InKryption:better-options-stepCopy head branch name to clipboard
Closed

Improve std.build.OptionsStep#13408
InKryption wants to merge 0 commit intoziglang:masterziglang/zig:masterfrom
InKryption:better-options-stepCopy head branch name to clipboard

Conversation

@InKryption
Copy link
Contributor

@InKryption InKryption commented Nov 2, 2022

This doesn't make any breaking changes to the API, but it does add capabilities and change some behaviors, namely it adds the ability to add a type as an option, which will then be reference-able by other option declarations, and will also automatically add reference-able type declarations for values whose type doesn't correspond to an existing one, thus this shouldn't break any existing code.

Closes #13403.

I acknowledge the code is definitely somewhat hacky, and it could be greatly improved and reorganized.

@InKryption
Copy link
Contributor Author

From what I can tell, the CI failure doesn't seem to be caused by this PR. I ran the behavior tests (which is what seems to be failing) with the latest nightly, run with -fwine, and it seemed to occur both on my branch and master branch.

@andrewrk
Copy link
Member

In #13865 I discovered that the unit tests for OptionsStep apparently weren't being run. There will be conflicts between that PR and this one, and I would like to merge that one before this one because it gets the CI into a state where more checks are being run, making a CI pass on this one more meaningful. Sorry for the trouble.

@InKryption
Copy link
Contributor Author

Was no issue, by the way. The small effort that it was amounted to just undoing your TODO on the enum, which ends up being fixed in this version of the test case - although it's still broken without the extra line adding the type as an option.

@andrewrk andrewrk closed this Jan 27, 2023
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.

OptionStep duplicates enum declarations

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.