Rolling back the change that broke MacOS builds.

The error:

```
ERROR: .../tensorflow/python/BUILD:1528:15: Mandatory attribute 'actual' resolved to 'None' after evaluating 'select' expression
```

Reverts e1ca1524b4

PiperOrigin-RevId: 810568791
This commit is contained in:
A. Unique TensorFlower
2025-09-23 13:51:42 -07:00
committed by TensorFlower Gardener
parent c3492061fc
commit 1ce46b9a1c
3 changed files with 4 additions and 13 deletions

View File

@@ -1172,7 +1172,6 @@ tf_cc_shared_library(
],
"//conditions:default": [
"-Wl,--version-script,$(location //tensorflow:tf_framework_version_script.lds)",
"-Wl,-Bsymbolic-functions",
# copybara:uncomment_begin(google-only)
# "-Wl,--undefined-version",
# copybara:uncomment_end(google-only)
@@ -1321,7 +1320,6 @@ tf_cc_shared_library(
"//conditions:default": [
"-Wl,-z,defs",
"-Wl,--version-script,$(location //tensorflow:tf_version_script.lds)",
"-Wl,-Bsymbolic-functions",
],
}),
per_os_targets = True,
@@ -1587,7 +1585,6 @@ exports_files(
"tf_version_script.lds",
"tf_exported_symbols.lds",
"tf_private_symbols.lds",
"tf_framework_version_script.lds",
],
)

View File

@@ -1566,7 +1566,6 @@ pywrap_library(
"-lpthread",
"-ldl",
"-lm",
"-Wl,-Bsymbolic-functions",
],
}),
"tensorflow/tensorflow_cc": select({
@@ -1587,18 +1586,12 @@ pywrap_library(
"-lpthread",
"-ldl",
"-lm",
"-Wl,-Bsymbolic-functions",
],
}),
},
# buildifier: disable=unsorted-dict-items
# @unsorted-dict-items
common_lib_version_scripts = {
"tensorflow/tensorflow_framework": select({
"//tensorflow:windows": None,
"//tensorflow:macos": None,
"//conditions:default": "//tensorflow:tf_framework_version_script.lds",
}),
"tensorflow/tensorflow_cc": select({
"//tensorflow:windows": None,
"//tensorflow:macos": "//tensorflow:tf_exported_symbols.lds",

View File

@@ -1,4 +1,5 @@
tensorflow {
global:
*;
VERS_1.0 {
# Hide libjpeg symbols to avoid symbol conflict with OpenCV
local:
*mlir*;
};