Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 8455d58

Browse files
authored
Update build_native.sh
Update to C++11 ABI for AOTI, similar to ET
1 parent 55c48b5 commit 8455d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchchat/utils/scripts/build_native.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ popd
9393
if [[ "$TARGET" == "et" ]]; then
9494
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=`python3 -c 'import torch;print(torch.utils.cmake_prefix_path)'` -DLINK_TORCHAO_OPS="${LINK_TORCHAO_OPS}" -DET_USE_ADAPTIVE_THREADS=ON -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=1" -G Ninja
9595
else
96-
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=`python3 -c 'import torch;print(torch.utils.cmake_prefix_path)'` -DLINK_TORCHAO_OPS="${LINK_TORCHAO_OPS}" -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" -G Ninja
96+
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=`python3 -c 'import torch;print(torch.utils.cmake_prefix_path)'` -DLINK_TORCHAO_OPS="${LINK_TORCHAO_OPS}" -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=1" -G Ninja
9797
fi
9898
cmake --build ./cmake-out --target "${TARGET}"_run
9999

0 commit comments

Comments
 (0)