-
Notifications
You must be signed in to change notification settings - Fork 120
/
WORKSPACE
47 lines (34 loc) · 1.42 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
workspace(
name = "tensorstore",
)
load("//:external.bzl", "tensorstore_dependencies")
tensorstore_dependencies()
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
register_toolchains("@local_config_python//:py_toolchain")
# Register proto toolchains.
load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains")
rules_proto_toolchains()
# Register apple_support toolchains, which are needed for cross-compilaton
# macOS. Unfortunately this (small) repo will have to be downloaded in all
# cases, even though it is only needed on macOS when cross-compiling.
load("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure")
apple_cc_configure()
# Define LLVM toolchain used for extracting C++ API documentation information
load("@toolchains_llvm//toolchain:rules.bzl", "llvm_toolchain")
llvm_toolchain(
name = "llvm_toolchain",
# https://github.com/bazel-contrib/toolchains_llvm/blob/master/toolchain/internal/llvm_distributions.bzl
llvm_versions = {
# Note: Older versions are built against older glibc, which is needed
# for compatibility with manylinux containers.
"": "15.0.6",
"darwin-aarch64": "15.0.7",
"darwin-x86_64": "15.0.7",
},
extra_target_compatible_with = {
"": ["@//docs:docs_toolchain_value"],
},
)
load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
llvm_register_toolchains()