Skip to content

rbeconfigsgen: Conditionally use @platforms//host based on Bazel version#1072

Merged
Wyverald merged 1 commit into
bazelbuild:masterfrom
coeuvre:push-lkptqtzmmnrq
May 22, 2026
Merged

rbeconfigsgen: Conditionally use @platforms//host based on Bazel version#1072
Wyverald merged 1 commit into
bazelbuild:masterfrom
coeuvre:push-lkptqtzmmnrq

Conversation

@coeuvre
Copy link
Copy Markdown
Member

@coeuvre coeuvre commented May 22, 2026

Commit cb0929a changed the generated toolchain to use @platforms//host instead of @local_config_platform//:host. However, this breaks toolchain generation with Bazel 6 because @platforms//host is not supported in Bazel 6.

This change dynamically selects the parent platform:

  • @local_config_platform//:host for Bazel < 7
  • @platforms//host for Bazel >= 7

Added TestGenConfigBuild to verify the behavior.

Commit cb0929a changed the generated
toolchain to use @platforms//host instead of @local_config_platform//:host.
However, this breaks toolchain generation with Bazel 6 because
@platforms//host is not supported in Bazel 6.

This change dynamically selects the parent platform:
- @local_config_platform//:host for Bazel < 7
- @platforms//host for Bazel >= 7

Added TestGenConfigBuild to verify the behavior.
@Wyverald Wyverald merged commit d23b9d7 into bazelbuild:master May 22, 2026
3 checks passed
@coeuvre coeuvre deleted the push-lkptqtzmmnrq branch May 26, 2026 08:08
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