From e60e72435f0dfebe6424ab4c525523486006d47a Mon Sep 17 00:00:00 2001 From: gunan Date: Thu, 26 Jan 2017 23:26:28 -0800 Subject: [PATCH] Fix windows bazel build by excluding unsupported sources. (#7082) --- tensorflow/tools/graph_transforms/BUILD | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tensorflow/tools/graph_transforms/BUILD b/tensorflow/tools/graph_transforms/BUILD index 4b91da50798403..509c8c310fe805 100644 --- a/tensorflow/tools/graph_transforms/BUILD +++ b/tensorflow/tools/graph_transforms/BUILD @@ -7,6 +7,7 @@ licenses(["notice"]) # Apache 2.0 load( "//tensorflow:tensorflow.bzl", + "if_not_windows", "tf_copts", "tf_cc_test", "tf_py_test", @@ -65,18 +66,19 @@ cc_library( "fuse_convolutions.cc", "insert_logging.cc", "obsfucate_names.cc", - "quantize_nodes.cc", - "quantize_weights.cc", "remove_attribute.cc", "remove_device.cc", "remove_nodes.cc", "rename_attribute.cc", "rename_op.cc", - "round_weights.cc", "set_device.cc", "sort_by_execution_order.cc", "strip_unused_nodes.cc", - ], + ] + if_not_windows([ + "quantize_nodes.cc", + "quantize_weights.cc", + "round_weights.cc", + ]), hdrs = [ "fold_constants_lib.h", ], @@ -91,8 +93,9 @@ cc_library( "//tensorflow/core:lib", "//tensorflow/core:protos_all_cc", "//tensorflow/core:tensorflow", + ] + if_not_windows([ "//tensorflow/core/kernels:quantized_ops", - ], + ]), alwayslink = 1, )