nheko: restrict to -j8 at most to avoid OOMs
This commit is contained in:
parent
5011e54b97
commit
3fa63e5307
1 changed files with 9 additions and 0 deletions
|
@ -18,3 +18,12 @@ checksum=5dbe32cb8760cfae6f05644568cabf422a368eec62918839a92e182d508f751e
|
||||||
pre_patch() {
|
pre_patch() {
|
||||||
vsed -e '/Werror/d' -i CMakeLists.txt
|
vsed -e '/Werror/d' -i CMakeLists.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# this one is very memory hungry and can use as much as 3GB per cc1plus
|
||||||
|
# realistically, using any more than 8 jobs will easily lead to OOM
|
||||||
|
do_build() {
|
||||||
|
cd build
|
||||||
|
local njobs=${XBPS_MAKEJOBS}
|
||||||
|
[ "$njobs" -gt 8 ] && njobs=8
|
||||||
|
make -j${njobs}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue