Commit 53c8232
committed
Bump Bazel to 9.0.1
### What does this PR do?
Upgrades the Bazel toolchain from 8.6.0 to 9.0.1.
### Motivation
9.0.1 ships two upstream fixes that directly benefit our build:
- bazelbuild/bazel#28606: NPE when `--repo_env` is set to an env var
that has no value — contributed by Datadog (Joseph Gette).
- bazelbuild/bazel#26842: `DefaultSyscallCache` incorrectly treated
`BUILD` files and `build` directories as the same entry on
case-insensitive / normalizing filesystems (e.g. Linux container on
a macOS host), causing spurious build failures.
### Describe how you validated your changes
`bazel test //...` passes.
### Additional Notes
Changes required:
- `.bazelversion`: 8.6.0 → 9.0.1
- `MODULE.bazel`:
- `protobuf` 29.1 → 33.4 (resolved version in Bazel 9 dep graph)
- `apple_support` 1.24.1 → 1.24.2
- `libarchive` 3.8.1 → 3.8.1.bcr.2, whose transitive `bzip2` dep
(pinned to 1.0.8.bcr.4 via `single_version_override`) ships a
Bazel 9-compatible BUILD file with explicit `load()` statements
- `gcc_toolchain`: add patch 0005 (see below)
- `bazel/toolchains/mingw/toolchain.bzl`: drop
`provides = [CcToolchainConfigInfo]`; `CcToolchainConfigInfo` was
never imported so it evaluated to `None`, which Bazel 9 rejects
- `bazel/patches/gcc-toolchain/0005-fix-bazel-9-compat.patch`:
same fix for `gcc_toolchain`'s `cc_toolchain_config.bzl`; also
adds explicit `cc_common` load and `cc_library` to the generated
BUILD template, both required by Bazel 91 parent ab756a1 commit 53c8232
7 files changed
Lines changed: 226 additions & 435 deletions
File tree
- bazel/patches/rules_foreign_cc
- deps
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | | - | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
333 | 339 | | |
334 | 340 | | |
335 | 341 | | |
336 | | - | |
| 342 | + | |
337 | 343 | | |
338 | 344 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
44 | 57 | | |
45 | 58 | | |
46 | 59 | | |
| |||
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
59 | | - | |
| 72 | + | |
60 | 73 | | |
61 | 74 | | |
62 | 75 | | |
| |||
72 | 85 | | |
73 | 86 | | |
74 | 87 | | |
75 | | - | |
| 88 | + | |
76 | 89 | | |
77 | 90 | | |
78 | 91 | | |
| |||
0 commit comments