Skip to content

Commit

Permalink
编译失败脚本停止
Browse files Browse the repository at this point in the history
  • Loading branch information
255-1 committed Jul 18, 2024
1 parent 88d1164 commit 5e073da
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ cd $folder
cmake .. "$@"
make -j$(nproc)

if [ $? == 0 ]; then
#编译失败停止执行
if [ $? != 0 ]; then
exit -1
fi

cd tools
python3 setup.py sdist build
python3 setup.py bdist_wheel
python3 setup.py install
fi
python3 setup.py install

0 comments on commit 5e073da

Please sign in to comment.