firefox: Fix OOM errors based on cores.

This commit is contained in:
Dylan Araps 2019-08-03 10:27:01 +03:00
parent 5f7b36586e
commit 2d19c42b50
2 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,10 @@ cd firefox
mv mozconfig .mozconfig
# Fix OOM errors.
cores=$(nproc)
printf '%s\n' "mk_add_options MOZ_MAKE_FLAGS=\"-j$cores -l$cores\"" >> .mozconfig
for patch in *.patch; do
patch -p1 < "$patch"
done

View File

@ -38,6 +38,3 @@ ac_add_options --enable-alsa
ac_add_options --disable-dbus
ac_add_options --disable-necko-wifi
ac_add_options --disable-startup-notification
# Prevent OOM
mk_add_options MOZ_MAKE_FLAGS="-j7 -l7"