tensorflow/third_party/farmhash/workspace.bzl
Mehdi Amini 2d34c7e935 Backport Bazel BUILD file fix for LLVM
PiperOrigin-RevId: 417520712
Change-Id: I5bb9ee0457b9b2bd289828f2996a3bd796975333
2021-12-20 19:09:35 -08:00

30 lines
1.2 KiB
Python

"""Provides the repository macro to import farmhash."""
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
def repo():
"""Imports farmhash."""
# Attention: tools parse and update these lines.
# LINT.IfChange
FARMHASH_COMMIT = "0d859a811870d10f53a594927d0d0b97573ad06d"
FARMHASH_SHA256 = "18392cf0736e1d62ecbb8d695c31496b6507859e8c75541d7ad0ba092dc52115"
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/farmhash.cmake)
tf_http_archive(
name = "farmhash_archive",
build_file = "//third_party/farmhash:farmhash.BUILD",
sha256 = FARMHASH_SHA256,
strip_prefix = "farmhash-{commit}".format(commit = FARMHASH_COMMIT),
urls = tf_mirror_urls("https://github.com/google/farmhash/archive/{commit}.tar.gz".format(commit = FARMHASH_COMMIT)),
)
tf_http_archive(
name = "farmhash_gpu_archive",
build_file = "//third_party/farmhash:farmhash_gpu.BUILD",
patch_file = ["//third_party/farmhash:farmhash_support_cuda.patch"],
sha256 = FARMHASH_SHA256,
strip_prefix = "farmhash-{commit}".format(commit = FARMHASH_COMMIT),
urls = tf_mirror_urls("https://github.com/google/farmhash/archive/{commit}.tar.gz".format(commit = FARMHASH_COMMIT)),
)