Skip to content

fix: use platform_info.target_settings in toolchain aliases #3001

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

Merged
merged 2 commits into from
Jun 17, 2025

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Jun 17, 2025

During the refactor we forgot one more place where the flag_values on
the platform information was used. They were no longer populated and
broke.

The solution is to use selects.config_setting_group to maintain
behaviour and in order to smoke test I have added a target to verify
that the aliases work.

Related to #2875
Fixes #2993

During the refactor we forgot one more place where the `flag_values` on
the platform information was used. They were no longer populated and
broke.

The solution is to use `selects.config_setting_group` to maintain
behaviour and in order to smoke test I have added a target to verify
that the aliases work.

Fixup to #2875
Fixes #2993
@rickeylev
Copy link
Collaborator

Ahhh, I see now. Yeah, I missed that toolchain aliases repo. We should deprecate that thing; the toolchain-based lookup replaces it.

@rickeylev rickeylev enabled auto-merge June 17, 2025 17:37
@rickeylev rickeylev added this pull request to the merge queue Jun 17, 2025
Merged via the queue into main with commit 107a878 Jun 17, 2025
7 checks passed
rickeylev added a commit to rickeylev/rules_python that referenced this pull request Jun 17, 2025
…ntrib#3001)

During the refactor we forgot one more place where the `flag_values` on
the platform information was used. They were no longer populated and
broke.

The solution is to use `selects.config_setting_group` to maintain
behaviour and in order to smoke test I have added a target to verify
that the aliases work.

Related to bazel-contrib#2875
Fixes bazel-contrib#2993

Co-authored-by: Richard Levasseur <[email protected]>
(cherry picked from commit 107a878)
@aignas aignas deleted the fix/headers-select branch June 18, 2025 01:26
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.

Illegal ambiguous match on configurable attribute cc headers
2 participants