Skip to content

Commit f75373d

Browse files
Merge pull request #575 from quantumlib/bazel-platforms-1
Use bazel @platforms
2 parents 21f5690 + b03b9aa commit f75373d

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

WORKSPACE

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
22

3+
http_archive(
4+
name = "platforms",
5+
urls = [
6+
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
7+
"https://github.com/bazelbuild/platforms/releases/download/0.0.6/platforms-0.0.6.tar.gz",
8+
],
9+
sha256 = "5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca",
10+
)
11+
312
http_archive(
413
name = "com_google_googletest",
5-
sha256 = "ff7a82736e158c077e76188232eac77913a15dac0b22508c390ab3f88e6d6d86",
6-
strip_prefix = "googletest-b6cd405286ed8635ece71c72f118e659f4ade3fb",
7-
url = "https://github.com/google/googletest/archive/b6cd405286ed8635ece71c72f118e659f4ade3fb.zip",
14+
sha256 = "ab78fa3f912d44d38b785ec011a25f26512aaedc5291f51f3807c592b506d33a",
15+
strip_prefix = "googletest-58d77fa8070e8cec2dc1ed015d66b454c8d78850",
16+
url = "https://github.com/google/googletest/archive/58d77fa8070e8cec2dc1ed015d66b454c8d78850.zip",
817
)
918

1019
# Required for testing compatibility with TF Quantum:

tests/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ windows_avx512_copts = [
1515

1616
config_setting(
1717
name = "windows",
18-
constraint_values = ["@bazel_tools//platforms:windows"],
18+
constraint_values = ["@platforms//os:windows"],
1919
)
2020

2121
cc_test(

0 commit comments

Comments
 (0)