Merge pull request #37719 from Flamefire:fix_lrt
PiperOrigin-RevId: 301869845 Change-Id: I0420a74bec0622c70946c4d0ab02b0ea1f41e80f
This commit is contained in:
commit
511a7490e3
@ -537,7 +537,7 @@ def tf_cc_shared_object(
|
|||||||
srcs = [],
|
srcs = [],
|
||||||
deps = [],
|
deps = [],
|
||||||
data = [],
|
data = [],
|
||||||
linkopts = [],
|
linkopts = if_not_windows(["-lrt"]),
|
||||||
framework_so = tf_binary_additional_srcs(),
|
framework_so = tf_binary_additional_srcs(),
|
||||||
soversion = None,
|
soversion = None,
|
||||||
kernels = [],
|
kernels = [],
|
||||||
@ -641,7 +641,7 @@ def tf_cc_binary(
|
|||||||
srcs = [],
|
srcs = [],
|
||||||
deps = [],
|
deps = [],
|
||||||
data = [],
|
data = [],
|
||||||
linkopts = [],
|
linkopts = if_not_windows(["-lrt"]),
|
||||||
copts = tf_copts(),
|
copts = tf_copts(),
|
||||||
kernels = [],
|
kernels = [],
|
||||||
per_os_targets = False, # Generate targets with SHARED_LIBRARY_NAME_PATTERNS
|
per_os_targets = False, # Generate targets with SHARED_LIBRARY_NAME_PATTERNS
|
||||||
@ -737,7 +737,7 @@ def tf_gen_op_wrapper_cc(
|
|||||||
tf_cc_binary(
|
tf_cc_binary(
|
||||||
name = tool,
|
name = tool,
|
||||||
copts = tf_copts(),
|
copts = tf_copts(),
|
||||||
linkopts = if_not_windows(["-lm", "-Wl,-ldl"]),
|
linkopts = if_not_windows(["-lm", "-Wl,-ldl", "-lrt"]),
|
||||||
linkstatic = 1, # Faster to link this one-time-use binary dynamically
|
linkstatic = 1, # Faster to link this one-time-use binary dynamically
|
||||||
deps = [op_gen] + deps,
|
deps = [op_gen] + deps,
|
||||||
)
|
)
|
||||||
@ -924,7 +924,7 @@ def tf_gen_op_wrapper_py(
|
|||||||
tf_cc_binary(
|
tf_cc_binary(
|
||||||
name = tool_name,
|
name = tool_name,
|
||||||
copts = tf_copts(),
|
copts = tf_copts(),
|
||||||
linkopts = if_not_windows(["-lm", "-Wl,-ldl"]) + cc_linkopts,
|
linkopts = if_not_windows(["-lm", "-Wl,-ldl", "-lrt"]) + cc_linkopts,
|
||||||
linkstatic = 1, # Faster to link this one-time-use binary dynamically
|
linkstatic = 1, # Faster to link this one-time-use binary dynamically
|
||||||
visibility = [clean_dep("//tensorflow:internal")],
|
visibility = [clean_dep("//tensorflow:internal")],
|
||||||
deps = ([
|
deps = ([
|
||||||
@ -1221,7 +1221,7 @@ def tf_cc_tests(
|
|||||||
tags = [],
|
tags = [],
|
||||||
size = "medium",
|
size = "medium",
|
||||||
args = None,
|
args = None,
|
||||||
linkopts = [],
|
linkopts = if_not_windows(["-lrt"]),
|
||||||
kernels = [],
|
kernels = [],
|
||||||
create_named_test_suite = False,
|
create_named_test_suite = False,
|
||||||
visibility = None):
|
visibility = None):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user