移除autobuild.sh的默认编译选项 -c和-debug ,加快编译速度
authorSnickerSun <snickersun@163.com>
Fri, 29 Dec 2023 11:31:36 +0000 (19:31 +0800)
committerSnickerSun <snickersun@163.com>
Fri, 29 Dec 2023 11:31:36 +0000 (19:31 +0800)
autobuild.sh [moved from autuobuild.sh with 92% similarity]

similarity index 92%
rename from autuobuild.sh
rename to autobuild.sh
index dd1a3fc..892a281 100644 (file)
@@ -11,12 +11,20 @@ else
 TARGET_PACK_NAME=$1
 fi
 
-if [ "$2" == "" ]
+if [ "$2" == "debug" ]
 then
 RELEASE_BUILD=debug
 else
 RELEASE_BUILD=release
 fi
+
+if [ "$3" == "clean" ]
+then
+CLEAN=-c
+else
+CLEAN=
+fi
+
 CURRENT_BRANCH=`git branch |awk '$1=="*"{print $2}'`
 COMMIT_ID=`git rev-parse HEAD`
 SOURCE_MODIFIED=`git status --short`
@@ -48,7 +56,7 @@ build_target()
 {
 
        cd $HOMEDIR/code/sdk/
-       ./build.py -nhso  -c -$RELEASE_BUILD $TARGET_PACK_NAME 2>&1 
+       ./build.py -nhso $CLEAN -$RELEASE_BUILD $TARGET_PACK_NAME 2>&1 
        ret_code=$?
        if [ $ret_code == 0 ]
        then