From b230b704d23a8918c4b7f5d5ccf6da263fd80f59 Mon Sep 17 00:00:00 2001 From: airborne12 Date: Fri, 20 Jan 2023 09:10:58 +0800 Subject: [PATCH] [Update](thirdparty) omit BUILD_TYPE for clucene, ignore other build type except RelWithDebInfo (#16076) omit BUILD_TYPE for clucene, ignore other build type except RelWithDebInfo --- thirdparty/build-thirdparty.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh index 930c298e00..3acd6d2590 100755 --- a/thirdparty/build-thirdparty.sh +++ b/thirdparty/build-thirdparty.sh @@ -1558,10 +1558,6 @@ build_clucene() { USE_AVX2="${USE_AVX2:-0}" fi - if [[ -z ${BUILD_TYPE} ]]; then - BUILD_TYPE=Release - fi - check_if_source_exist "${CLUCENE_SOURCE}" cd "${TP_SOURCE_DIR}/${CLUCENE_SOURCE}" @@ -1578,7 +1574,7 @@ build_clucene() { -DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer ${warning_narrowing}" \ -DUSE_STAT64=0 \ -DUSE_AVX2="${USE_AVX2}" \ - -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DBUILD_CONTRIBS_LIB=ON .. ${BUILD_SYSTEM} -j "${PARALLEL}" ${BUILD_SYSTEM} install