From a50862557b47f014417b635390c7dc81acd1a913 Mon Sep 17 00:00:00 2001 From: Mryange <2319153948@qq.com> Date: Wed, 22 May 2024 10:40:01 +0800 Subject: [PATCH] 1 --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 4587b5a4b155eba..d3c8cd10c13c0f2 100755 --- a/build.sh +++ b/build.sh @@ -98,7 +98,7 @@ clean_be() { # "build.sh --clean" just cleans and exits, however CMAKE_BUILD_DIR is set # while building be. - CMAKE_BUILD_TYPE="${BUILD_TYPE:-Release}" + CMAKE_BUILD_TYPE="UBSAN" CMAKE_BUILD_DIR="${DORIS_HOME}/be/build_${CMAKE_BUILD_TYPE}" rm -rf "${CMAKE_BUILD_DIR}" @@ -569,7 +569,7 @@ if [[ "${BUILD_BE}" -eq 1 ]]; then if [[ -e "${DORIS_HOME}/gensrc/build/gen_cpp/version.h" ]]; then rm -f "${DORIS_HOME}/gensrc/build/gen_cpp/version.h" fi - CMAKE_BUILD_TYPE="${BUILD_TYPE:-Release}" + CMAKE_BUILD_TYPE="UBSAN" echo "Build Backend: ${CMAKE_BUILD_TYPE}" CMAKE_BUILD_DIR="${DORIS_HOME}/be/build_${CMAKE_BUILD_TYPE}" if [[ "${CLEAN}" -eq 1 ]]; then @@ -629,7 +629,7 @@ if [[ "${BUILD_CLOUD}" -eq 1 ]]; then if [[ -e "${DORIS_HOME}/gensrc/build/gen_cpp/cloud_version.h" ]]; then rm -f "${DORIS_HOME}/gensrc/build/gen_cpp/cloud_version.h" fi - CMAKE_BUILD_TYPE="${BUILD_TYPE:-Release}" + CMAKE_BUILD_TYPE="UBSAN" echo "Build Cloud: ${CMAKE_BUILD_TYPE}" CMAKE_BUILD_DIR="${DORIS_HOME}/cloud/build_${CMAKE_BUILD_TYPE}" if [[ "${CLEAN}" -eq 1 ]]; then