On windows, tensor_bundle requires ws2_32.lib

add relevant linkopts

PiperOrigin-RevId: 289266962
Change-Id: I476f6e56860c0ebb933624b4e1bd38ec72100d93
This commit is contained in:
Gunhan Gulsoy 2020-01-11 13:12:26 -08:00 committed by TensorFlower Gardener
parent 134d2b7309
commit e3cf342cc0

View File

@ -5,6 +5,7 @@ load(
"//tensorflow:tensorflow.bzl",
"cc_header_only_library",
"if_not_windows",
"if_windows",
"tf_cc_test",
"tf_copts",
)
@ -43,6 +44,7 @@ cc_library(
"tensor_bundle.h",
],
copts = tf_copts() + if_not_windows(["-Wno-sign-compare"]),
linkopts = if_windows(["-DEFAULTLIB:ws2_32.lib"]),
deps = [
":naming",
"//tensorflow/core:core_cpu_lib",