aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/def_file_filter
diff options
context:
space:
mode:
authorGravatar Yun Peng <pcloudy@google.com>2018-05-29 05:04:59 +0200
committerGravatar Gunhan Gulsoy <gunan@google.com>2018-05-28 20:04:59 -0700
commiteadfa07685bfcc0c79d6ae8bf7bccae33eedff0d (patch)
treed015de0e882f20975ba0b784d4b0564e0aeeb6d1 /tensorflow/tools/def_file_filter
parent6ecdf028055f311956d15995bdb6179db4e9bcc4 (diff)
Windows: fail gracefully when undname.exe is not found (#19600)
* Windows: fail gracefully when undname.exe is not found * Edit error message.
Diffstat (limited to 'tensorflow/tools/def_file_filter')
-rw-r--r--tensorflow/tools/def_file_filter/def_file_filter_configure.bzl6
1 files changed, 5 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 47539b2423..f8f63e276c 100644
--- a/tensorflow/tools/def_file_filter/def_file_filter_configure.bzl
+++ b/tensorflow/tools/def_file_filter/def_file_filter_configure.bzl
@@ -31,7 +31,11 @@ def _def_file_filter_configure_impl(repository_ctx):
vc_path = find_vc_path(repository_ctx)
if vc_path == "visual-studio-not-found":
auto_configure_fail("Visual C++ build tools not found on your machine")
- undname_bin_path = find_msvc_tool(repository_ctx, vc_path, "undname.exe").replace("\\", "\\\\")
+
+ undname = find_msvc_tool(repository_ctx, vc_path, "undname.exe")
+ if undname == None:
+ auto_configure_fail("Couldn't find undname.exe under %s, please check your VC installation and set BAZEL_VC environment variable correctly." % vc_path)
+ undname_bin_path = undname.replace("\\", "\\\\")
repository_ctx.template(
"def_file_filter.py",