Skip to content

Commit 7d45255

Browse files
authored
Set torch._C._PYBIND11_BUILD_ABI version check only for GLIBCXX_USE_CXX11_ABI=0 (#1303)
1 parent cf4fa89 commit 7d45255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_binary.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fi
435435
###############################################################################
436436
# Check for C++ ABI compatibility between gcc7 and gcc9 compiled binaries
437437
###############################################################################
438-
if [[ "$(uname)" == 'Linux' && ("$PACKAGE_TYPE" == 'conda' || "$PACKAGE_TYPE" == 'manywheel') ]]; then
438+
if [[ "$(uname)" == 'Linux' && ("$PACKAGE_TYPE" == 'conda' || "$PACKAGE_TYPE" == 'manywheel') && GLIBCXX_USE_CXX11_ABI=0 ]]; then
439439
pushd /tmp
440440
python -c "import torch; exit(0 if torch._C._PYBIND11_BUILD_ABI == '_cxxabi1011' else 1)"
441441
popd

0 commit comments

Comments
 (0)