android13/external/tensorflow/third_party/absl/workspace.bzl

26 lines
1.1 KiB
Python

"""Provides the repository macro to import absl."""
load("//third_party:repo.bzl", "tf_http_archive")
def repo():
"""Imports absl."""
# Attention: tools parse and update these lines.
# LINT.IfChange
ABSL_COMMIT = "997aaf3a28308eba1b9156aa35ab7bca9688e9f6"
ABSL_SHA256 = "35f22ef5cb286f09954b7cc4c85b5a3f6221c9d4df6b8c4a1e9d399555b366ee"
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/abseil-cpp.cmake)
tf_http_archive(
name = "com_google_absl",
sha256 = ABSL_SHA256,
build_file = "//third_party/absl:com_google_absl.BUILD",
# TODO(mihaimaruseac): Remove the patch when https://github.com/abseil/abseil-cpp/issues/326 is resolved
patch_file = "//third_party/absl:com_google_absl_fix_mac_and_nvcc_build.patch",
strip_prefix = "abseil-cpp-{commit}".format(commit = ABSL_COMMIT),
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/{commit}.tar.gz".format(commit = ABSL_COMMIT),
"https://github.com/abseil/abseil-cpp/archive/{commit}.tar.gz".format(commit = ABSL_COMMIT),
],
)