File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 435
435
# ##############################################################################
436
436
# Check for C++ ABI compatibility between gcc7 and gcc9 compiled binaries
437
437
# ##############################################################################
438
- if [[ " $( uname) " == ' Linux' && (" $PACKAGE_TYPE " == ' conda' || " $PACKAGE_TYPE " == ' manywheel' ) && GLIBCXX_USE_CXX11_ABI = 0 ]]; then
438
+ if [[ " $( uname) " == ' Linux' && (" $PACKAGE_TYPE " == ' conda' || " $PACKAGE_TYPE " == ' manywheel' )]]; then
439
439
pushd /tmp
440
- python -c " import torch; exit(0 if torch._C._PYBIND11_BUILD_ABI == '_cxxabi1011' else 1)"
440
+ python -c " import torch; exit(0 if torch.compiled_with_cxx11_abi() else (0 if torch. _C._PYBIND11_BUILD_ABI == '_cxxabi1011' else 1) )"
441
441
popd
442
442
fi
You can’t perform that action at this time.
0 commit comments