nheko: restrict to -j8 at most to avoid OOMs

This commit is contained in:
q66 2020-01-05 22:53:42 +01:00
parent 5011e54b97
commit 3fa63e5307

View file

@ -18,3 +18,12 @@ checksum=5dbe32cb8760cfae6f05644568cabf422a368eec62918839a92e182d508f751e
pre_patch() {
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}
}