提交 052b0448 编写于 作者: T tianshuo78520a 提交者: tensor-tang

Fix mac build nproc command not found (#18362)

* change nproc 8
上级 f5641000
......@@ -292,13 +292,17 @@ function check_style() {
#=================================================
function build_base() {
parallel_number=`nproc`
if [[ "$1" != "" ]]; then
if [ "$SYSTEM" == "Linux" ];then
parallel_number=`nproc`
else
parallel_number=8
fi
if [ "$1" != "" ]; then
parallel_number=$1
fi
make clean
make -j ${parallel_number}
make install -j `nproc`
make install -j ${parallel_number}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册