Fixing an issue where scipy and tensorflow cannot be imported at the same time.
PiperOrigin-RevId: 286313739 Change-Id: I9d4dfb66a8e82c56249bc7f7b70c71d228912e9f
This commit is contained in:
parent
16740c1266
commit
ec23b813cc
@ -2481,7 +2481,14 @@ def pybind_extension(
|
||||
name = so_file,
|
||||
srcs = srcs + hdrs,
|
||||
data = data,
|
||||
copts = copts + ["-fexceptions"],
|
||||
copts = copts + [
|
||||
"-fexceptions",
|
||||
] + select({
|
||||
clean_dep("//tensorflow:windows"): [],
|
||||
"//conditions:default": [
|
||||
"-fvisibility=hidden",
|
||||
],
|
||||
}),
|
||||
linkopts = linkopts + _rpath_linkopts(name) + select({
|
||||
"@local_config_cuda//cuda:darwin": [
|
||||
"-Wl,-exported_symbols_list,$(location %s)" % exported_symbols_file,
|
||||
|
Loading…
Reference in New Issue
Block a user