Skip to content

Commit 3d4c149

Browse files
smolkajclaude
andcommitted
Support Bazel 9
Bazel 9 is now released. The only blocker is that BCR `p4runtime 1.5.0` declares `bazel_compatibility < 9.0.0`. Suppress the check via `--check_bazel_compatibility=off` until a new p4runtime BCR release is cut (tracked in p4lang/p4runtime#597). Unlike `git_override`, this flag works for modules published to the BCR. Also add a Bazel version matrix to CI (7.x and 9.x), and fix macOS builds: use Command Line Tools clang to avoid requiring a full Xcode install, and set `macos_minimum_os=10.15` which is the minimum for `std::filesystem` support in libc++. Signed-off-by: Steffen Smolka <steffen.smolka@gmail.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d59f5b2 commit 3d4c149

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.bazelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ build --host_cxxopt=-std=c++20
99
# Force the use of Clang for all builds.
1010
build --action_env=CC=clang
1111
build --action_env=CXX=clang++
12+
13+
# macOS: use Command Line Tools clang (avoids requiring a full Xcode install)
14+
# and raise the deployment target to 10.15, which is the minimum for
15+
# std::filesystem support in libc++.
16+
build --repo_env=CC=/usr/bin/clang
17+
build --macos_minimum_os=10.15

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.5.0
1+
9.0.0

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ bazel_dep(name = "rules_license", version = "1.0.0")
2626
bazel_dep(name = "rules_m4", version = "0.3")
2727
bazel_dep(name = "rules_proto", version = "7.1.0")
2828
bazel_dep(name = "z3", version = "4.15.2")
29-
bazel_dep(name = "p4runtime", version = "1.5.0")
29+
bazel_dep(name = "p4runtime", version = "1.5.0.bcr.1")
3030

3131
p4c_repositories = use_extension("//bazel:repositories.bzl", "p4c_repositories")
3232
use_repo(

0 commit comments

Comments
 (0)