Skip to content
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

Swap config_setting(constraint_values=[X]) -> X, where possible #247

Merged
merged 2 commits into from
Jan 25, 2022
Merged

Swap config_setting(constraint_values=[X]) -> X, where possible #247

merged 2 commits into from
Jan 25, 2022

Conversation

cpsauer
Copy link
Collaborator

@cpsauer cpsauer commented Jan 25, 2022

Hey, @nelhage, I went through the last category of cleanup I'd mentioned in #245 and did as much as could be done with Bazel 5.

To flag the bit that might be controversial: this does remove, e.g. @boost//:windows, as part of the public interface of these rules, but I think you probably want people using Bazel's @platforms// rather than no-longer-needed wrappings in this workspace.


More details from the commit message:
Bazel no longer requires wrapping single constraint_value()s in config settings; they can be selected upon directly. This allows for some code to deleted and simplified.

I've also added notes to the cases where we can't yet delete constraint_values, but will likely be able to in the near future, as well as the relevant blocking bugs.

Bazel no longer requires wrapping single constraint_value()s in config settings; they can be selected upon directly. This allows for some code to deleted and simplified.

I've also added notes to the cases where we can't yet delete constraint_values, but will likely be able to in the near future, as well as the relevant blocking bugs.
@cpsauer cpsauer mentioned this pull request Jan 25, 2022
nelhage pushed a commit that referenced this pull request Jan 25, 2022
I happened to see a C++1z while writing #247. Since it's 2022, I figured I'd quickly switch it out for C++17--and make sure it passed the test suite.
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.

2 participants