Rollback linkstatic removal, unforeseen interaction on some archs.

Change: 126219121
This commit is contained in:
A. Unique TensorFlower 2016-06-29 11:17:48 -08:00 committed by TensorFlower Gardener
parent c6e10698f6
commit b6b45463fe
5 changed files with 9 additions and 1 deletions

View File

@ -20,7 +20,7 @@ tf_workspace()
# Specify the minimum required bazel version.
load("//tensorflow:tensorflow.bzl", "check_version")
check_version("0.3.0")
check_version("0.2.0")
# TENSORBOARD_BOWER_AUTOGENERATED_BELOW_THIS_LINE_DO_NOT_EDIT

View File

@ -334,6 +334,7 @@ cc_library(
cc_library(
name = "array_grad",
srcs = ["ops/array_grad.cc"],
linkstatic = 1, # Needed since alwayslink is broken in bazel b/27630669
visibility = ["//visibility:public"],
deps = [
":array_ops_op_lib",
@ -346,6 +347,7 @@ cc_library(
cc_library(
name = "functional_grad",
srcs = ["ops/functional_grad.cc"],
linkstatic = 1, # Needed since alwayslink is broken in bazel b/27630669
visibility = ["//visibility:public"],
deps = [
":framework",
@ -361,6 +363,7 @@ cc_library(
"ops/math_grad.cc",
"ops/random_grad.cc",
],
linkstatic = 1, # Needed since alwayslink is broken in bazel b/27630669
visibility = ["//visibility:public"],
deps = [
":framework",
@ -373,6 +376,7 @@ cc_library(
cc_library(
name = "nn_grad",
srcs = ["ops/nn_grad.cc"],
linkstatic = 1, # Needed since alwayslink is broken in bazel b/27630669
visibility = ["//visibility:public"],
deps = [
":framework",

View File

@ -235,6 +235,7 @@ cc_library(
name = "grpc_server_lib",
srcs = ["grpc_server_lib.cc"],
hdrs = ["grpc_server_lib.h"],
linkstatic = 1, # Seems to be needed since alwayslink is broken in bazel
deps = [
":async_service_interface",
":grpc_channel",
@ -278,6 +279,7 @@ tf_cuda_library(
name = "grpc_testlib_ops",
testonly = 1,
srcs = ["grpc_testlib_ops.cc"],
linkstatic = 1, # Seems to be needed since alwayslink is broken in bazel
deps = [
"//tensorflow/core:framework",
"//tensorflow/core:lib",

View File

@ -32,6 +32,7 @@ cc_library(
hdrs = [
"gcs_file_system.h",
],
linkstatic = 1, # Needed since alwayslink is broken in bazel b/27630669
visibility = ["//visibility:public"],
deps = [
":google_auth_provider",

View File

@ -425,6 +425,7 @@ def tf_kernel_library(name, prefix=None, srcs=None, gpu_srcs=None, hdrs=None,
hdrs = hdrs,
copts = tf_copts(),
cuda_deps = cuda_deps,
linkstatic = 1, # Needed since alwayslink is broken in bazel b/27630669
alwayslink = alwayslink,
deps = deps,
**kwargs)