More cleanup

This commit is contained in:
Loo Rong Jie 2018-07-04 09:01:18 +08:00
parent 1dc5772b08
commit 36032a2dfd
4 changed files with 15 additions and 3 deletions

View File

@ -734,7 +734,10 @@ cc_library(
"util/reporter.h", "util/reporter.h",
], ],
copts = tf_copts(), copts = tf_copts(),
linkopts = ["-lm"], linkopts = select({
"//tensorflow:windows": [],
"//conditions:default": ["-lm"],
}),
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [
":lib", ":lib",
@ -3116,7 +3119,10 @@ cc_library(
testonly = 1, testonly = 1,
srcs = ["platform/test_main.cc"], srcs = ["platform/test_main.cc"],
copts = tf_copts(), copts = tf_copts(),
linkopts = ["-lm"], linkopts = select({
"//tensorflow:windows": [],
"//conditions:default": ["-lm"],
}),
visibility = ["//tensorflow:internal"], visibility = ["//tensorflow:internal"],
deps = [ deps = [
":lib", ":lib",

View File

@ -2501,6 +2501,7 @@ tf_kernel_library(
# allow multiple definitions when linking this. # allow multiple definitions when linking this.
linkopts = select({ linkopts = select({
"//tensorflow:darwin": [], "//tensorflow:darwin": [],
"//tensorflow:windows": [],
"//conditions:default": ["-Wl,-z,muldefs"], "//conditions:default": ["-Wl,-z,muldefs"],
}), }),
visibility = [":friends"], visibility = [":friends"],

View File

@ -86,7 +86,10 @@ tf_cc_binary(
"src/gen/cc/op_gen_main.cc", "src/gen/cc/op_gen_main.cc",
], ],
copts = tf_copts(), copts = tf_copts(),
linkopts = ["-lm"], linkopts = select({
"//tensorflow:windows": [],
"//conditions:default": ["-lm"],
}),
linkstatic = 1, linkstatic = 1,
deps = [ deps = [
":java_op_gen_lib", ":java_op_gen_lib",

View File

@ -30,6 +30,7 @@ cc_library(
hdrs = STREAM_EXECUTOR_HEADERS, hdrs = STREAM_EXECUTOR_HEADERS,
linkopts = select({ linkopts = select({
"//tensorflow:freebsd": [], "//tensorflow:freebsd": [],
"//tensorflow:windows": [],
"//conditions:default": ["-ldl"], "//conditions:default": ["-ldl"],
}), }),
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
@ -79,6 +80,7 @@ cc_library(
}), }),
linkopts = select({ linkopts = select({
"//tensorflow:freebsd": [], "//tensorflow:freebsd": [],
"//tensorflow:windows": [],
"//conditions:default": ["-ldl"], "//conditions:default": ["-ldl"],
}), }),
visibility = ["//visibility:public"], visibility = ["//visibility:public"],