From b5934b71318855c29414ae569980138ba6236060 Mon Sep 17 00:00:00 2001 From: ZHANG Shijin Date: Thu, 12 Mar 2020 14:21:32 +0800 Subject: [PATCH] refactor build_mlu.sh delete "git submodule update" when preparing workspace --- lite/tools/build_mlu.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lite/tools/build_mlu.sh b/lite/tools/build_mlu.sh index 6dd441eef9..c85110fa9f 100755 --- a/lite/tools/build_mlu.sh +++ b/lite/tools/build_mlu.sh @@ -29,17 +29,13 @@ readonly THIRDPARTY_TAR=https://paddle-inference-dist.bj.bcebos.com/PaddleLite/t readonly workspace=$(pwd) function prepare_thirdparty { - if [ ! -d $workspace/third-party -o -f $workspace/third-party-05b862.tar.gz ]; then + if [ ! -d $workspace/third-party ]; then rm -rf $workspace/third-party - - if [ ! -f $workspace/third-party-05b862.tar.gz ]; then - wget $THIRDPARTY_TAR - fi - tar xvf third-party-05b862.tar.gz - else - # git submodule update --init --recursive - echo "third-party is in ready" fi + if [ ! -f $workspace/third-party-05b862.tar.gz ]; then + wget $THIRDPARTY_TAR + fi + tar xvf third-party-05b862.tar.gz } # for code gen, a source file is generated after a test, but is dependended by some targets in cmake. -- GitLab