Skip to content

Commit

Permalink
Limit build release parallelism (#4301)
Browse files Browse the repository at this point in the history
ref #4141
  • Loading branch information
solotzg authored Mar 16, 2022
1 parent fa1e9eb commit b18b1d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release-centos7-llvm/scripts/build-tiflash-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ set -ueox pipefail

SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
SRCPATH=$(cd ${SCRIPTPATH}/../..; pwd -P)
NPROC=${NPROC:-$(nproc || grep -c ^processor /proc/cpuinfo)}

INSTALL_DIR="${SRCPATH}/release-centos7-llvm/tiflash"
rm -rf ${INSTALL_DIR} && mkdir -p ${INSTALL_DIR}
Expand All @@ -51,7 +52,7 @@ cmake "${SRCPATH}" ${DEFINE_CMAKE_PREFIX_PATH} \
-DRUN_HAVE_STD_REGEX=0 \
-GNinja

cmake --build . --target tiflash --parallel
cmake --build . --target tiflash --parallel ${NPROC}
cmake --install . --component=tiflash-release --prefix="${INSTALL_DIR}"

# unset LD_LIBRARY_PATH before test
Expand Down

0 comments on commit b18b1d0

Please sign in to comment.