[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

@ -274,13 +274,6 @@ conda install -c conda-forge libuv=1.39
#### Install PyTorch
**On Linux**
If you would like to compile PyTorch with [new C++ ABI](https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html) enabled, then first run this command:
```bash
export _GLIBCXX_USE_CXX11_ABI=1
```
Please **note** that starting from PyTorch 2.5, the PyTorch build with XPU supports both new and old C++ ABIs. Previously, XPU only supported the new C++ ABI. If you want to compile with Intel GPU support, please follow [Intel GPU Support](#intel-gpu-support).
If you're compiling for AMD ROCm then first run this command:
```bash
# Only run this if you're compiling for ROCm