From 88d1164710410424dc9b856e599ac012f0238221 Mon Sep 17 00:00:00 2001 From: 255-1 <1911646322@qq.com> Date: Thu, 18 Jul 2024 00:24:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9install.sh=EF=BC=8C?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E7=BC=96=E8=AF=91=E5=87=BA=E9=94=99=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E7=BB=A7=E7=BB=AD=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 877c5f54..6bd01449 100755 --- a/install.sh +++ b/install.sh @@ -8,8 +8,11 @@ fi cd $folder cmake .. "$@" -make -j +make -j$(nproc) + +if [ $? == 0 ]; then cd tools python3 setup.py sdist build python3 setup.py bdist_wheel python3 setup.py install +fi \ No newline at end of file From 5e073dab1e3b7725443951bb1b2d25beb217b398 Mon Sep 17 00:00:00 2001 From: 255-1 <1911646322@qq.com> Date: Thu, 18 Jul 2024 20:55:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=81=9C=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 6bd01449..8f5b854a 100755 --- a/install.sh +++ b/install.sh @@ -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 \ No newline at end of file +python3 setup.py install \ No newline at end of file