Skip to content

Commit

Permalink
remove extra blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
hnwyllmm authored Nov 6, 2024
1 parent 5608a90 commit e494851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function do_clean
find . -maxdepth 1 -type d -name 'build_*' | xargs rm -rf
}

function build {
function build {
# 默认参数是 debug
if [ -z "${BUILD_ARGS[0]}" ]; then
set -- "debug" # 如果没有参数,则设置默认值
Expand All @@ -156,7 +156,7 @@ function build {
fi
local build_type_lower=$(echo "$1" | tr '[:upper:]' '[:lower:]') # 转换为小写
echo "Build type: $build_type_lower" # 输出构建类型

do_build "$build_type_lower" -DCMAKE_BUILD_TYPE="$build_type_lower" # 调用 do_build
}

Expand Down

0 comments on commit e494851

Please sign in to comment.