Skip to content

Commit 174405c

Browse files
author
jax authors
committed
The Bazel version used in JAX is bumped from 6.1.2 to 6.5.0.
The update is needed for Windows/Clang builds and for the future hermetic CUDA implementation. PiperOrigin-RevId: 631519200
1 parent b6fea37 commit 174405c

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.1.2
1+
6.5.0

build/build.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -105,40 +105,40 @@ def get_githash():
105105

106106
# Bazel
107107

108-
BAZEL_BASE_URI = "https://github.com/bazelbuild/bazel/releases/download/6.1.2/"
108+
BAZEL_BASE_URI = "https://github.com/bazelbuild/bazel/releases/download/6.5.0/"
109109
BazelPackage = collections.namedtuple("BazelPackage",
110110
["base_uri", "file", "sha256"])
111111
bazel_packages = {
112112
("Linux", "x86_64"):
113113
BazelPackage(
114114
base_uri=None,
115-
file="bazel-6.1.2-linux-x86_64",
115+
file="bazel-6.5.0-linux-x86_64",
116116
sha256=
117-
"e89747d63443e225b140d7d37ded952dacea73aaed896bca01ccd745827c6289"),
117+
"a40ac69263440761199fcb8da47ad4e3f328cbe79ffbf4ecc14e5ba252857307"),
118118
("Linux", "aarch64"):
119119
BazelPackage(
120120
base_uri=None,
121-
file="bazel-6.1.2-linux-arm64",
121+
file="bazel-6.5.0-linux-arm64",
122122
sha256=
123-
"1c9b249e315601c3703c41668a1204a8fdf0eba7f0f2b7fc38253bad1d1969c7"),
123+
"5afe973cadc036496cac66f1414ca9be36881423f576db363d83afc9084c0c2f"),
124124
("Darwin", "x86_64"):
125125
BazelPackage(
126126
base_uri=None,
127-
file="bazel-6.1.2-darwin-x86_64",
127+
file="bazel-6.5.0-darwin-x86_64",
128128
sha256=
129-
"22d4b605ce6a7aad92d4f387458cc68de9907a2efa08f9b8bda244c2b6010561"),
129+
"bbf9c2c03bac48e0514f46db0295027935535d91f6d8dcd960c53393559eab29"),
130130
("Darwin", "arm64"):
131131
BazelPackage(
132132
base_uri=None,
133-
file="bazel-6.1.2-darwin-arm64",
133+
file="bazel-6.5.0-darwin-arm64",
134134
sha256=
135-
"30cdf85af055ca8fdab7de592b1bd64f940955e3f63ed5c503c4e93d0112bd9d"),
135+
"c6b6dc17efcdf13fba484c6fe0b6c3361b888ae7b9573bc25a2dbe8c502448eb"),
136136
("Windows", "AMD64"):
137137
BazelPackage(
138138
base_uri=None,
139-
file="bazel-6.1.2-windows-x86_64.exe",
139+
file="bazel-6.5.0-windows-x86_64.exe",
140140
sha256=
141-
"47e7f65a3bfa882910f76e2107b4298b28ace33681bd0279e25a8f91551913c0"),
141+
"6eae8e7f28e1b68b833503d1a58caf139c11e52de19df0d787d974653a0ea4c6"),
142142
}
143143

144144

@@ -201,7 +201,7 @@ def get_bazel_paths(bazel_path_flag):
201201

202202
def get_bazel_path(bazel_path_flag):
203203
"""Returns the path to a Bazel binary, downloading Bazel if not found. Also,
204-
checks Bazel's version is at least newer than 5.1.1
204+
checks Bazel's version is at least newer than 6.5.0
205205
206206
A manual version check is needed only for really old bazel versions.
207207
Newer bazel releases perform their own version check against .bazelversion
@@ -210,11 +210,11 @@ def get_bazel_path(bazel_path_flag):
210210
"""
211211
for path in filter(None, get_bazel_paths(bazel_path_flag)):
212212
version = get_bazel_version(path)
213-
if version is not None and version >= (5, 1, 1):
213+
if version is not None and version >= (6, 5, 0):
214214
return path, ".".join(map(str, version))
215215

216216
print("Cannot find or download a suitable version of bazel."
217-
"Please install bazel >= 5.1.1.")
217+
"Please install bazel >= 6.5.0.")
218218
sys.exit(-1)
219219

220220

0 commit comments

Comments
 (0)