diff --git a/profiles/win/profile b/profiles/win/profile index 8bd9ee5..495b431 100644 --- a/profiles/win/profile +++ b/profiles/win/profile @@ -80,6 +80,9 @@ function c3tool() { update_res=true update_libs=true ;; + --release) + export CMAKE_BUILD_TYPE=release + ;; esac done @@ -87,10 +90,12 @@ function c3tool() { case "$cmd" in b|build) if $force; then - printf "[BUILD] 清理make文件:" && rm -rf CMakeCache.txt CMakeFiles Makefile cmake_install.cmake compile_commands.json augustus* && \ + printf "[BUILD] 清理make文件:" && rm -rf CMakeCache.txt CMakeFiles Makefile cmake_install.cmake compile_commands.json augustus* .cmake && \ echo "Done" fi + printf "evn: - CMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE\n\n" + # cmake if [[ ! -f "Makefile" ]]; then exec_str="cmake .. -G \"MinGW Makefiles\"" && eval $exec_str @@ -147,7 +152,7 @@ function c3tool() { echo "[Err] Invalid cmd: $cmd" echo echo "Usage:" - echo " - c3tool build|b [-r -l -f -a]" + echo " - c3tool build|b [-r -l -f -a --release]" echo " - c3tool clean|c" return 1 esac