bazel-contrib / bazel-contrib/rules_foreign_cc

Flag --incompatible_enable_cc_toolchain_resolution will break rules_foreign_cc in Bazel 7.0

Open
#984 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
737
Forks
270
PR merge metrics
No merged PRs in 30d

Description

Incompatible flag `--incompatible_enable_cc_toolchain_resolution` will be enabled by default in the next major release (Bazel 7.0), thus breaking rules_foreign_cc. Please migrate to fix this and unblock the flip of this flag.

The flag is documented here: https://github.com/bazelbuild/bazel/issues/7260.

Please check the following CI builds for build and test results:

- [macOS, OpenJDK 11](https://buildkite.com/bazel/bazelisk-plus-incompatible-flags/builds/1339#018497b7-ac43-4133-b701-200b9181fd7b)
- [macOS, OpenJDK 11](https://buildkite.com/bazel/bazelisk-plus-incompatible-flags/builds/1339#018497b7-ac45-432b-9805-da254731b9f3)

Never heard of incompatible flags before? We have [documentation](https://docs.bazel.build/versions/master/backward-compatibility.html) that explains everything.
If you have any questions, please file an issue in https://github.com/bazelbuild/continuous-integration.

Contributor guide

Open the contributing guide

Research direction

Read the Bazel issue linked in the report and compare the two macOS OpenJDK 11 CI builds listed there. Identify which rules_foreign_cc configuration or entry points fail when --incompatible_enable_cc_toolchain_resolution is enabled. Done means the flag no longer breaks the affected builds and tests pass.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.