diff --git a/build/script/cmake_package_mini.sh b/build/script/cmake_package_mini.sh index a0f65d52e..a2eb58469 100644 --- a/build/script/cmake_package_mini.sh +++ b/build/script/cmake_package_mini.sh @@ -442,6 +442,7 @@ function install_gaussdb() export BUILD_TUPLE=${PLATFORM_ARCH} export THIRD_BIN_PATH="${binarylibs_path}" export PREFIX_HOME="${BUILD_DIR}" + export ENABLE_LITE_MODE=ON if [ "$version_mode"x == "release"x ]; then CMAKE_OPT="-DENABLE_MULTIPLE_NODES=OFF -DENABLE_PRIVATEGAUSS=OFF -DENABLE_THREAD_SAFETY=ON -DENABLE_LITE_MODE=ON" diff --git a/cmake/src/buildfunction.sh b/cmake/src/buildfunction.sh index 3e25dc59f..ecfcf4d2d 100755 --- a/cmake/src/buildfunction.sh +++ b/cmake/src/buildfunction.sh @@ -116,6 +116,9 @@ function get_gs_version() debug_str="$DEBUG_TYPE" product=$(cat build/script/gaussdb.ver | grep 'PRODUCT' | awk -F "=" '{print $2}') version=$(cat build/script/gaussdb.ver | grep 'VERSION' | awk -F "=" '{print $2}') + if [ "${ENABLE_LITE_MODE}" == "ON" ]; then +        product="$product-lite" +    fi if test "$enable_ccache" = yes; then default_gs_version="(${product} ${version} build 1f1f1f1f) compiled at 2100-00-00 00:00:00 commit 9999 last mr 9999 debug" else