Skip to content

Modernize rbe_configs_gen to support Bazel 8+ by default#1071

Merged
coeuvre merged 1 commit into
bazelbuild:masterfrom
coeuvre:push-zoltntuynwnz
May 21, 2026
Merged

Modernize rbe_configs_gen to support Bazel 8+ by default#1071
coeuvre merged 1 commit into
bazelbuild:masterfrom
coeuvre:push-zoltntuynwnz

Conversation

@coeuvre
Copy link
Copy Markdown
Member

@coeuvre coeuvre commented May 21, 2026

  • Remove obsolete '--cpp_config_targets' and '--cpp_config_repo' flags and their corresponding Option fields.
  • Implement version-based automatic C++ autoconfig target and repository selection:
    • Bazel < 8: uses legacy '@local_config_cc//...' target and 'local_config_cc' repo name.
    • Bazel >= 8: uses canonical Bzlmod target '@@rules_cc++cc_configure_extension+local_config_cc//...' and repo name 'rules_cc++cc_configure_extension+local_config_cc'.
  • Refactor target selection logic into a testable helper function and add unit tests covering the Bazel 7/8 boundary and development version fallback.

- Remove obsolete '--cpp_config_targets' and '--cpp_config_repo' flags and their corresponding Option fields.
- Implement version-based automatic C++ autoconfig target and repository selection:
  - Bazel < 8: uses legacy '@local_config_cc//...' target and 'local_config_cc' repo name.
  - Bazel >= 8: uses canonical Bzlmod target '@@rules_cc++cc_configure_extension+local_config_cc//...' and repo name 'rules_cc++cc_configure_extension+local_config_cc'.
- Refactor target selection logic into a testable helper function and add unit tests covering the Bazel 7/8 boundary and development version fallback.
@coeuvre coeuvre merged commit 5a77851 into bazelbuild:master May 21, 2026
3 checks passed
@coeuvre coeuvre deleted the push-zoltntuynwnz branch May 22, 2026 08:18
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