mirror of
https://codeberg.org/kiss-community/repo
synced 2024-11-19 13:10:07 -07:00
firefox: Fix OOM errors based on cores.
This commit is contained in:
parent
5f7b36586e
commit
2d19c42b50
@ -19,6 +19,10 @@ cd firefox
|
|||||||
|
|
||||||
mv mozconfig .mozconfig
|
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
|
for patch in *.patch; do
|
||||||
patch -p1 < "$patch"
|
patch -p1 < "$patch"
|
||||||
done
|
done
|
||||||
|
@ -38,6 +38,3 @@ ac_add_options --enable-alsa
|
|||||||
ac_add_options --disable-dbus
|
ac_add_options --disable-dbus
|
||||||
ac_add_options --disable-necko-wifi
|
ac_add_options --disable-necko-wifi
|
||||||
ac_add_options --disable-startup-notification
|
ac_add_options --disable-startup-notification
|
||||||
|
|
||||||
# Prevent OOM
|
|
||||||
mk_add_options MOZ_MAKE_FLAGS="-j7 -l7"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user