Fix mac build nproc command not found (#18362)

* change nproc 8
xsrobin-update1.5
tianshuo78520a 6 years ago committed by tensor-tang
parent f5641000bb
commit 052b044873

@ -292,13 +292,17 @@ function check_style() {
#================================================= #=================================================
function build_base() { function build_base() {
if [ "$SYSTEM" == "Linux" ];then
parallel_number=`nproc` parallel_number=`nproc`
if [[ "$1" != "" ]]; then else
parallel_number=8
fi
if [ "$1" != "" ]; then
parallel_number=$1 parallel_number=$1
fi fi
make clean make clean
make -j ${parallel_number} make -j ${parallel_number}
make install -j `nproc` make install -j ${parallel_number}
} }

Loading…
Cancel
Save