Skip to content

Commit

Permalink
Update to use Bazel 7.4.1. (#5071)
Browse files Browse the repository at this point in the history
This specifically enables the legacy WORKSPACE-based resolution, and
disables the new bzlmod-based resolution.

Related to #5065 and #5066.

---------

Signed-off-by: John Cater <[email protected]>
  • Loading branch information
katre authored Dec 17, 2024
1 parent 3f3365d commit 6b9de96
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Remove once #5066 is resolved.
common --enable_workspace
# Enable once #5066 is resolved.
common --noenable_bzlmod

build --action_env=BAZEL_CXXOPTS="-std=c++17"
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.4.1
5 changes: 5 additions & 0 deletions bazel/example/.bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# Remove once #5066 is resolved.
common --enable_workspace
# Enable once #5066 is resolved.
common --noenable_bzlmod

build --action_env=BAZEL_CXXOPTS="-std=c++17"
2 changes: 1 addition & 1 deletion bazel/example/.bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
7.4.1
3 changes: 2 additions & 1 deletion bazel/example/WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ local_repository(
# This part is optional: only needed for custom backends with IR extensions.
repo_mapping = {
# Tells p4c where to look for `:ir_extension` target: in this project.
"@com_github_p4lang_p4c_extension": "@example_p4_project",
# The main repo has no name, so a bare `@` means this repository.
"@com_github_p4lang_p4c_extension": "@",
},
)

Expand Down

0 comments on commit 6b9de96

Please sign in to comment.