Remove unused Make variables from tf_py_wrap_cc.
PiperOrigin-RevId: 198518885
This commit is contained in:
parent
bca9ebc670
commit
786ad688b7
@ -1353,12 +1353,6 @@ register_extension_info(
|
|||||||
label_regex_for_dep = "{extension_name}",
|
label_regex_for_dep = "{extension_name}",
|
||||||
)
|
)
|
||||||
|
|
||||||
def tf_extension_linkopts():
|
|
||||||
return [] # No extension link opts
|
|
||||||
|
|
||||||
def tf_extension_copts():
|
|
||||||
return [] # No extension c opts
|
|
||||||
|
|
||||||
# In tf_py_wrap_cc generated libraries
|
# In tf_py_wrap_cc generated libraries
|
||||||
# module init functions are not exported unless
|
# module init functions are not exported unless
|
||||||
# they contain one of the keywords in the version file
|
# they contain one of the keywords in the version file
|
||||||
@ -1459,10 +1453,10 @@ def tf_py_wrap_cc(name,
|
|||||||
tf_cc_shared_object(
|
tf_cc_shared_object(
|
||||||
name=cc_library_name,
|
name=cc_library_name,
|
||||||
srcs=[module_name + ".cc"],
|
srcs=[module_name + ".cc"],
|
||||||
copts=(copts + if_not_windows([
|
copts=copts + if_not_windows([
|
||||||
"-Wno-self-assign", "-Wno-sign-compare", "-Wno-write-strings"
|
"-Wno-self-assign", "-Wno-sign-compare", "-Wno-write-strings"
|
||||||
]) + tf_extension_copts()),
|
]),
|
||||||
linkopts=tf_extension_linkopts() + extra_linkopts,
|
linkopts=extra_linkopts,
|
||||||
linkstatic=1,
|
linkstatic=1,
|
||||||
deps=deps + extra_deps,
|
deps=deps + extra_deps,
|
||||||
**kwargs)
|
**kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user