tensorflow/third_party/llvm/setup.bzl
Benjamin Kramer d8aa003c14 Unbreak LLVM builds after 7b5d6cd7fc
PiperOrigin-RevId: 534533361
2023-05-23 13:17:41 -07:00

24 lines
561 B
Python

"""TensorFlow workspace initialization. Consult the WORKSPACE on how to use it."""
load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure")
# The subset of LLVM targets that TensorFlow cares about.
_LLVM_TARGETS = [
"AArch64",
"AMDGPU",
"ARM",
"NVPTX",
"PowerPC",
"RISCV",
"SystemZ",
"X86",
]
def llvm_setup(name):
# Build @llvm-project from @llvm-raw using overlays.
llvm_configure(
name = name,
repo_mapping = {"@python_runtime": "@local_config_python"},
targets = _LLVM_TARGETS,
)