mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Merge pull request #60189 from linux-on-ibm-z:enable_secure_grpc_on_s390x
PiperOrigin-RevId: 548570049
This commit is contained in:
commit
9f66a76f1f
|
|
@ -84,6 +84,10 @@ def is_ppc64le():
|
|||
return platform.machine() == 'ppc64le'
|
||||
|
||||
|
||||
def is_s390x():
|
||||
return platform.machine() == 's390x'
|
||||
|
||||
|
||||
def is_cygwin():
|
||||
return platform.system().startswith('CYGWIN_NT')
|
||||
|
||||
|
|
@ -1100,7 +1104,12 @@ def system_specific_test_config(environ_cp):
|
|||
|
||||
|
||||
def set_system_libs_flag(environ_cp):
|
||||
"""Set system libs flags."""
|
||||
syslibs = environ_cp.get('TF_SYSTEM_LIBS', '')
|
||||
|
||||
if is_s390x() and 'boringssl' not in syslibs:
|
||||
syslibs = 'boringssl' + (', ' + syslibs if syslibs else '')
|
||||
|
||||
if syslibs:
|
||||
if ',' in syslibs:
|
||||
syslibs = ','.join(sorted(syslibs.split(',')))
|
||||
|
|
|
|||
|
|
@ -1117,7 +1117,6 @@ cc_library(
|
|||
name = "grpc",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = select({
|
||||
":linux_s390x": ["@com_github_grpc_grpc//:grpc_unsecure"],
|
||||
"//conditions:default": ["@com_github_grpc_grpc//:grpc"],
|
||||
}),
|
||||
)
|
||||
|
|
@ -1126,7 +1125,6 @@ cc_library(
|
|||
name = "grpc++",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = select({
|
||||
":linux_s390x": ["@com_github_grpc_grpc//:grpc++_unsecure"],
|
||||
"//conditions:default": ["@com_github_grpc_grpc//:grpc++"],
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -485,7 +485,6 @@ cc_library(
|
|||
name = "grpc++",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = select({
|
||||
":linux_s390x": ["@com_github_grpc_grpc//:grpc++_unsecure"],
|
||||
"//conditions:default": ["@com_github_grpc_grpc//:grpc++"],
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -243,7 +243,6 @@ def cc_proto_library(
|
|||
|
||||
if use_grpc_plugin:
|
||||
cc_libs += select({
|
||||
clean_dep("//tensorflow/tsl:linux_s390x"): ["//external:grpc_lib_unsecure"],
|
||||
"//conditions:default": ["//external:grpc_lib"],
|
||||
})
|
||||
|
||||
|
|
@ -326,7 +325,6 @@ def cc_grpc_library(
|
|||
proto_targets += srcs
|
||||
|
||||
extra_deps += select({
|
||||
clean_dep("//tensorflow/tsl:linux_s390x"): ["//external:grpc_lib_unsecure"],
|
||||
"//conditions:default": ["//external:grpc_lib"],
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user