Replaced tools with exec_tools in genrules.

PiperOrigin-RevId: 297015992
Change-Id: I27215c80ef07062faea51ae2cfb366996f19b0f1
This commit is contained in:
A. Unique TensorFlower 2020-02-24 18:12:50 -08:00 committed by TensorFlower Gardener
parent bc58dda8c0
commit f65d00f2f5

View File

@ -969,7 +969,7 @@ def tf_gen_op_wrapper_py(
name = name + "_pygenrule",
outs = [out],
srcs = api_def_srcs + [hidden_file],
tools = [tool_name] + tf_binary_additional_srcs(),
exec_tools = [tool_name] + tf_binary_additional_srcs(),
cmd = ("$(location " + tool_name + ") " + api_def_args_str +
" @$(location " + hidden_file + ") > $@"),
)
@ -978,7 +978,7 @@ def tf_gen_op_wrapper_py(
name = name + "_pygenrule",
outs = [out],
srcs = api_def_srcs,
tools = [tool_name] + tf_binary_additional_srcs(),
exec_tools = [tool_name] + tf_binary_additional_srcs(),
cmd = ("$(location " + tool_name + ") " + api_def_args_str + " " +
op_list_arg + " " +
("1" if op_list_is_whitelist else "0") + " > $@"),