diff --git a/build.sh b/build.sh index 9bc01e11af..da44d1bba8 100755 --- a/build.sh +++ b/build.sh @@ -35,7 +35,7 @@ export DORIS_HOME=${ROOT} . ${DORIS_HOME}/env.sh -PARALLEL=8 +PARALLEL=$[$(nproc)/4+1] # Check args usage() { diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh index df744b0b19..ce56e5ac4f 100755 --- a/thirdparty/build-thirdparty.sh +++ b/thirdparty/build-thirdparty.sh @@ -397,7 +397,6 @@ build_boost() { check_if_source_exist $BOOST_SOURCE cd $TP_SOURCE_DIR/$BOOST_SOURCE - echo "using gcc : $GCC_VERSION : $CXX ; " > tools/build/src/user-config.jam ./bootstrap.sh --prefix=$TP_INSTALL_DIR ./b2 link=static -d0 -j$PARALLEL --without-mpi --without-graph --without-graph_parallel --without-python cxxflags="-std=c++11 -fPIC -I$TP_INCLUDE_DIR -L$TP_LIB_DIR" install } diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh index f60a8eb7df..d4e7278f9e 100644 --- a/thirdparty/vars.sh +++ b/thirdparty/vars.sh @@ -22,7 +22,7 @@ ############################################################ # --job param for *make* -PARALLEL=4 +PARALLEL=$[$(nproc)/4+1] ################################################### # DO NOT change variables bellow unless you known