Skip to content

Commit 7da2c94

Browse files
Update WORKSPACE (KhronosGroup#5588)
* Update WORKSPACE Same purpose as KhronosGroup#5585, but a bit less intrusive perhaps. * Update WORKSPACE Add `rules_license`, needed by `platforms`.
1 parent 16af142 commit 7da2c94

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

WORKSPACE

+20
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ http_archive(
66
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/main.zip"],
77
)
88

9+
# Override bazel's default `platforms`, since googletest requires a newer version. This can be removed once we use a newer Bazel version.
10+
http_archive(
11+
name = "platforms",
12+
urls = [
13+
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
14+
"https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
15+
],
16+
sha256 = "8150406605389ececb6da07cbcb509d5637a3ab9a24bc69b1101531367d89d74",
17+
)
18+
19+
# `platforms` needs `rules_license` on Windows. This can be removed if `platforms` above is removed.
20+
http_archive(
21+
name = "rules_license",
22+
urls = [
23+
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.8/rules_license-0.0.8.tar.gz",
24+
"https://github.com/bazelbuild/rules_license/releases/download/0.0.8/rules_license-0.0.8.tar.gz",
25+
],
26+
sha256 = "241b06f3097fd186ff468832150d6cc142247dc42a32aaefb56d0099895fd229",
27+
)
28+
929
local_repository(
1030
name = "spirv_headers",
1131
path = "external/spirv-headers",

0 commit comments

Comments
 (0)