Skip to content

Commit

Permalink
Update build.sh (oceanbase#343)
Browse files Browse the repository at this point in the history
去掉默认自动检测当前机器上CPU的个数来决定编译并发数量,改由自己决策。 
 ### What problem were solved in this pull request?
 Issue Number:  oceanbase#303
 

Problem:收到多名同学反馈编译执行buidl.sh卡死。build.sh中会自动检测当前机器上CPU的个数来决定编译并发数量,但是很多同学的机器内存与CPU并不匹配,会导致编译卡死。
 
 ### What is changed and how it works?
> 将此处改成`MAKE_ARGS=()`
>

>https://github.com/oceanbase/miniob/blob/f42235649b7d3860aaecc08265bb801b12dd7ef3/build.sh#L12


 * 去掉并发编译,使用者各取所需,在执行build.sh时直接使用 -jN 参数自行选择并行度。

 ### Other information
  • Loading branch information
colommar authored Feb 24, 2024
1 parent f422356 commit 34d0b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CMAKE_COMMAND="cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 --log-level=STATUS"

ALL_ARGS=("$@")
BUILD_ARGS=()
MAKE_ARGS=(-j $CPU_CORES)
MAKE_ARGS=()
MAKE=make

echo "$0 ${ALL_ARGS[@]}"
Expand Down

0 comments on commit 34d0b3c

Please sign in to comment.