[Tool] add option for ccache (#39758)

Signed-off-by: Murphy <mofei@starrocks.com>
This commit is contained in:
Murphy 2024-01-23 15:24:53 +08:00 committed by GitHub
parent 7c12370545
commit 6b07d1da8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -160,6 +160,9 @@ fi
if [[ -z ${JEMALLOC_DEBUG} ]]; then
JEMALLOC_DEBUG=OFF
fi
if [[ -z ${CCACHE} ]]; then
CCACHE=ccache
fi
if [ -e /proc/cpuinfo ] ; then
# detect cpuinfo
@ -260,6 +263,7 @@ echo "Get params:
BUILD_FE -- $BUILD_FE
BUILD_SPARK_DPP -- $BUILD_SPARK_DPP
BUILD_HIVE_UDF -- $BUILD_HIVE_UDF
CCACHE -- ${CCACHE}
CLEAN -- $CLEAN
RUN_UT -- $RUN_UT
WITH_GCOV -- $WITH_GCOV
@ -360,7 +364,7 @@ if [ ${BUILD_BE} -eq 1 ] ; then
-DSTARROCKS_THIRDPARTY=${STARROCKS_THIRDPARTY} \
-DSTARROCKS_HOME=${STARROCKS_HOME} \
-DSTARLET_INSTALL_DIR=${STARLET_INSTALL_DIR} \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=${CCACHE} \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DMAKE_TEST=OFF -DWITH_GCOV=${WITH_GCOV} \
-DUSE_AVX2=$USE_AVX2 -DUSE_AVX512=$USE_AVX512 -DUSE_SSE4_2=$USE_SSE4_2 \