fix(worker): cpu cores detection using sh and default to 4
In case bash is missing from the system the `cpu_cores.sh` fails with an error and returns empty string resulting in command like `make -j BUILDTYPE=Release -C out` that uses unlimited jobs and could lead to signifficant CPU and RAM usage during build The cpu_cores.sh is now changed to using `sh` instead of `bash`, so it should be more portable. Additionally if the cpu detection fails the jobs default to 4, that should be safe enough.
正在显示
请
注册
或者
登录
后发表评论