提交 0a8b69fc 编写于 作者: T tianshuo78520a 提交者: Tao Luo

Fix mac build nproc command not found in release1.5 (#18402)

* fix mac build error

* test=develop

* fix

* change nproc 8

* test=release/1.5
上级 ad6a51ff
......@@ -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.
先完成此消息的编辑!
想要评论请 注册