diff --git a/srcpkgs/nheko/template b/srcpkgs/nheko/template index ffbb66a1378..83e0b0545e8 100644 --- a/srcpkgs/nheko/template +++ b/srcpkgs/nheko/template @@ -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} +}