[Build] Remove pre-CXX11 ABI logic from build script (#149888)

Only keep one in check_binary_symbols to make sure there are no pre-CXX11 ABI symbols in the library
Pull Request resolved: https://github.com/pytorch/pytorch/pull/149888
Approved by: https://github.com/atalman, https://github.com/seemethere
ghstack dependencies: #149887
This commit is contained in:
Nikita Shulga
2025-03-24 16:23:28 -07:00
committed by PyTorch MergeBot
parent 280e48739a
commit 5a7588f183
12 changed files with 11 additions and 150 deletions

View File

@ -2232,7 +2232,7 @@ del _torch_docs, _tensor_docs, _storage_docs, _size_docs
def compiled_with_cxx11_abi() -> builtins.bool:
r"""Returns whether PyTorch was built with _GLIBCXX_USE_CXX11_ABI=1"""
return _C._GLIBCXX_USE_CXX11_ABI
return True
from torch import _library as _library, _ops as _ops