diff options
author | Yun Peng <pcloudy@google.com> | 2018-08-10 10:24:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-10 10:24:24 +0200 |
commit | ee50389b259c24ca84a7149d06e9cfea3b30e55d (patch) | |
tree | 78286c56e4039596c72a5e0724d119bd2b1340fa /tensorflow/tools/def_file_filter | |
parent | a769c3acb472ff92e91c1545385c16f04c5bc18a (diff) |
def_file_filter: Fix a bug when VC path is not found
`find_vc_path(repository_ctx)` returns `None` if VC path is not found.
@gunan
Diffstat (limited to 'tensorflow/tools/def_file_filter')
-rw-r--r-- | tensorflow/tools/def_file_filter/def_file_filter_configure.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/tools/def_file_filter/def_file_filter_configure.bzl b/tensorflow/tools/def_file_filter/def_file_filter_configure.bzl index f8f63e276c..d46694c66a 100644 --- a/tensorflow/tools/def_file_filter/def_file_filter_configure.bzl +++ b/tensorflow/tools/def_file_filter/def_file_filter_configure.bzl @@ -29,7 +29,7 @@ def _def_file_filter_configure_impl(repository_ctx): repository_ctx.file("def_file_filter.py", "") return vc_path = find_vc_path(repository_ctx) - if vc_path == "visual-studio-not-found": + if vc_path == None: auto_configure_fail("Visual C++ build tools not found on your machine") undname = find_msvc_tool(repository_ctx, vc_path, "undname.exe") |