diff --git a/T/Torch/build_tarballs.jl b/T/Torch/build_tarballs.jl index 58c2e73b2a7..12282817b6d 100644 --- a/T/Torch/build_tarballs.jl +++ b/T/Torch/build_tarballs.jl @@ -34,6 +34,10 @@ atomic_patch -p1 ../patches/pytorch-aten-qnnpack-cmake-windows.patch cmake_extra_args="" include_paths="" +if [[ $bb_full_target == *cxx11* ]]; then + cmake_extra_args+="-DGLIBCXX_USE_CXX11_ABI=1 " +fi + if [[ $target == i686-linux-gnu* || $target == x86_64-linux-gnu* || $target == x86_64-apple-darwin*