Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
solotzg authored and ti-chi-bot committed Oct 14, 2021
1 parent d3e3f3e commit 46212b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions release-centos7/build/build-tiflash-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ SRCPATH=$(cd ${SCRIPTPATH}/../..; pwd -P)
NPROC=${NPROC:-$(nproc || grep -c ^processor /proc/cpuinfo)}
ENABLE_EMBEDDED_COMPILER="FALSE"

INSTALL_DIR="$SRCPATH/release-centos7/tiflash"
INSTALL_DIR="${SRCPATH}/release-centos7/tiflash"

rm -rf ${SRCPATH}/libs/libtiflash-proxy
mkdir -p ${SRCPATH}/libs/libtiflash-proxy
ln -s ${SRCPATH}/contrib/tiflash-proxy/target/release/libtiflash_proxy.so ${SRCPATH}/libs/libtiflash-proxy/libtiflash_proxy.so

BUILD_DIR="$SRCPATH/release-centos7/build-release"
BUILD_DIR="${SRCPATH}/release-centos7/build-release"
rm -rf ${BUILD_DIR} && mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}

cmake "$SRCPATH" ${DEFINE_CMAKE_PREFIX_PATH} \
cmake "${SRCPATH}" ${DEFINE_CMAKE_PREFIX_PATH} \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DENABLE_EMBEDDED_COMPILER=${ENABLE_EMBEDDED_COMPILER} \
-DENABLE_ICU=OFF \
Expand All @@ -39,7 +39,7 @@ cmake "$SRCPATH" ${DEFINE_CMAKE_PREFIX_PATH} \
-Wno-dev \
-DUSE_CCACHE=OFF

make -j $NPROC tiflash
make -j ${NPROC} tiflash

# Reduce binary size by compressing.
objcopy --compress-debug-sections=zlib-gnu "${BUILD_DIR}/dbms/src/Server/tiflash"
Expand Down

0 comments on commit 46212b1

Please sign in to comment.