From 7bf84de5e964823612d644cdee236117b82dfbd8 Mon Sep 17 00:00:00 2001 From: Jesper Stemann Andersen Date: Tue, 23 Aug 2022 15:12:39 +0200 Subject: [PATCH] Set GLIBCXX_USE_CXX11_ABI --- T/Torch/build_tarballs.jl | 4 ++++ 1 file changed, 4 insertions(+) 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*