提交 57bd2fd0 编写于 作者: J Justine Tunney 提交者: Martin Wicke

Assert Bazel version from tf_workspace() (#7799)

* Assert Bazel version from tf_workspace()

This ensures that projects depending on TensorFlow, e.g. TFServing, will
benefit from the version check.

The mandatory version has also been bumped up to Bazel 0.4.4 which has been out
for 21 days. It includes numerous very important fixes. TensorFlow also appears
to not work without it.

* update version to 0.4.5
上级 ef561334
......@@ -14,12 +14,7 @@ load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
closure_repositories()
load("//tensorflow:workspace.bzl", "check_version", "tf_workspace")
# We must check the bazel version before trying to parse any other BUILD files,
# in case the parsing of those build files depends on the bazel version we
# require here.
check_version("0.4.5")
load("//tensorflow:workspace.bzl", "tf_workspace")
# Uncomment and update the paths in these entries to build the Android demo.
#android_sdk_repository(
......
......@@ -64,6 +64,10 @@ temp_workaround_http_archive = repository_rule(
# If TensorFlow is linked as a submodule.
# path_prefix and tf_repo_name are no longer used.
def tf_workspace(path_prefix = "", tf_repo_name = ""):
# We must check the bazel version before trying to parse any other BUILD
# files, in case the parsing of those build files depends on the bazel
# version we require here.
check_version("0.4.5")
cuda_configure(name = "local_config_cuda")
sycl_configure(name = "local_config_sycl")
if path_prefix:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册