Skip to content

Commit 5877e5b

Browse files
[bazel] update .bazelversion to 8.0.0 (#119425)
Fixes: ERROR: The project you're trying to build requires Bazel 7.3.0 (specified in llvm-project/utils/bazel/.bazelversion), but it wasn't found in /usr/bin. You can install the required Bazel version via apt: sudo apt update && sudo apt install bazel-7.3.0 If this doesn't work, check Bazel's installation instructions for help: https://bazel.build/install/ubuntu Link: https://blog.bazel.build/2024/12/09/bazel-8-release.html
1 parent b2cc66b commit 5877e5b

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

utils/bazel/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# Flip off to disable MODULE.bazel until we're ready.
1111
# https://github.com/llvm/llvm-project/issues/55924
12-
common --enable_bzlmod=false
12+
common --enable_bzlmod=false --enable_workspace
1313

1414
# Prevent invalid caching if input files are modified during a build.
1515
build --experimental_guard_against_concurrent_changes

utils/bazel/.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.3.0
1+
8.0.0

utils/bazel/WORKSPACE

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ http_archive(
1616
],
1717
)
1818

19+
http_archive(
20+
name = "rules_cc",
21+
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.17/rules_cc-0.0.17.tar.gz"],
22+
sha256 = "abc605dd850f813bb37004b77db20106a19311a96b2da1c92b789da529d28fe1",
23+
strip_prefix = "rules_cc-0.0.17",
24+
)
25+
1926
new_local_repository(
2027
name = "llvm-raw",
2128
build_file_content = "# empty",
@@ -29,9 +36,9 @@ llvm_configure(name = "llvm-project")
2936
maybe(
3037
http_archive,
3138
name = "rules_python",
32-
sha256 = "778aaeab3e6cfd56d681c89f5c10d7ad6bf8d2f1a72de9de55b23081b2d31618",
33-
strip_prefix = "rules_python-0.34.0",
34-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz",
39+
sha256 = "4f7e2aa1eb9aa722d96498f5ef514f426c1f55161c3c9ae628c857a7128ceb07",
40+
strip_prefix = "rules_python-1.0.0",
41+
url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0/rules_python-1.0.0.tar.gz",
3542
)
3643

3744
maybe(

0 commit comments

Comments
 (0)