Skip to content

Commit

Permalink
Fix windows bazel build by excluding unsupported sources. (#7082)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunan committed Jan 27, 2017
1 parent 03099d0 commit e60e724
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tensorflow/tools/graph_transforms/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ licenses(["notice"]) # Apache 2.0

load(
"//tensorflow:tensorflow.bzl",
"if_not_windows",
"tf_copts",
"tf_cc_test",
"tf_py_test",
Expand Down Expand Up @@ -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",
],
Expand All @@ -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,
)

Expand Down

0 comments on commit e60e724

Please sign in to comment.