diff options
author | Brennan Saeta <brennan.saeta@gmail.com> | 2018-06-16 12:23:23 -0700 |
---|---|---|
committer | Gunhan Gulsoy <gunan@google.com> | 2018-06-16 12:23:23 -0700 |
commit | 6d1603622b1c3b25de0a8d342714fed271308a47 (patch) | |
tree | b6f141e7cdd24c90ad7ca537ad0ecd690d8b36e1 /tensorflow/core/debug | |
parent | 79d7e11f3ea4ec13332693cdcf271bf10aad583d (diff) |
Do not depend on boringssl for big-endian architectures. (#20038)
* Do not depend on boringssl for big-endian architectures.
A recent commit migrated TensorFlow from grpc_unsecure (and grpc++_unsecure)
to their secure variants. These secure variants depend on BoringSSL.
Unfortunately, BoringSSL does not work on big-endian architectures.
This commit abstracts the grpc dependency behind a couple cc_library rules,
and plumbs through the logic to conditionally build without BoringSSL based
on the target architecture.
Fixes #20014
* Fix BUILD file formatting.
* Fix typo in CPU name
* Add an additional bind and select when evaluating the cc_proto_library rules.
Diffstat (limited to 'tensorflow/core/debug')
-rw-r--r-- | tensorflow/core/debug/BUILD | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/debug/BUILD b/tensorflow/core/debug/BUILD index 50f8a307d8..36e9b3455a 100644 --- a/tensorflow/core/debug/BUILD +++ b/tensorflow/core/debug/BUILD @@ -143,6 +143,7 @@ tf_cuda_library( ":debug_node_key", ":debug_service_proto_cc", ":debugger_event_metadata_proto_cc", + "//tensorflow:grpc++", "//tensorflow/core:core_cpu_internal", "//tensorflow/core:framework", "//tensorflow/core:graph", @@ -150,7 +151,6 @@ tf_cuda_library( "//tensorflow/core:lib_internal", "//tensorflow/core:proto_text", "//tensorflow/core:protos_all_cc", - "@grpc//:grpc++", ], alwayslink = 1, ) @@ -166,11 +166,11 @@ tf_cuda_library( ":debug_io_utils", ":debug_service_proto_cc", ":debugger_event_metadata_proto_cc", + "//tensorflow:grpc++", "//tensorflow/core:framework", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", "//tensorflow/core:protos_all_cc", - "@grpc//:grpc++", ], alwayslink = 1, ) |