Skip to content

Conversation

@Databean
Copy link
Member

We can start fixing targets to build under bazel 9, and then add them to this presubmit check so that we don't backslide with new development.

The local clang toolchains are disabled since the configuration has changed sufficiently between native bazel toolchains and rules_cc toolchains that it will require more effort to fix them.

bazel aquery is used to validate the BUILD.bazel files without actually running the compiler. It does still require fetching remote repositories and the clang prebuilts.

Bazel 9 requires a newer rules_cc, but the newer rules_cc produced some build errors on bazel 8, so those had to be fixed as well.

Bug: b/477396584

@Databean Databean requested a review from jemoreira January 22, 2026 20:24
@Databean Databean force-pushed the bazel9_ci branch 2 times, most recently from aced605 to 254c4cc Compare January 22, 2026 21:01
@Databean Databean force-pushed the bazel9_ci branch 2 times, most recently from 5ddc0db to bc40090 Compare January 22, 2026 22:20
@Databean
Copy link
Member Author

Thanks for reviewing!

We can start fixing targets to build under bazel 9, and then add them to
this presubmit check so that we don't backslide with new development.

The local clang toolchains are disabled since the configuration has
changed sufficiently between native bazel toolchains and rules_cc
toolchains that it will require more effort to fix them.

`bazel aquery` is used to validate the `BUILD.bazel` files without
actually running the compiler. It does still require fetching remote
repositories and the clang prebuilts.

Bazel 9 requires a newer `rules_cc`, but the newer `rules_cc` produced
some build errors on bazel 8, so those had to be fixed as well.

Bug: b/477396584
@Databean Databean added this pull request to the merge queue Jan 23, 2026
Merged via the queue into google:main with commit cd9f516 Jan 23, 2026
25 checks passed
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