From de84d1feaef5355846fa70d7afd8f21af07ff900 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 20 Sep 2019 13:03:41 +0200 Subject: extra/firefox: trying to handle out-of-memory and resource consumption issues --- extra/firefox/PKGBUILD | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'extra/firefox') diff --git a/extra/firefox/PKGBUILD b/extra/firefox/PKGBUILD index bb213f74..0ab1e4ea 100644 --- a/extra/firefox/PKGBUILD +++ b/extra/firefox/PKGBUILD @@ -69,3 +69,21 @@ for ((i=0; i<${#source[@]}; i++)); do ) fi done + +# from VoidLinux, avoid excessive debug symbols in rust leading +# to out-of-memory situations + +eval "$( + declare -f build | \ + sed ' + 2 a sed -i \"s/debug_info = '2'/debug_info = '1'/\" build/moz.configure/toolchain.configure + ' +)" + +# don't kill build slaves by auto-guessing available CPU cores +eval "$( + declare -f build | \ + sed ' + 2 a export MOZ_MAKE_FLAGS=-j1 + ' +)" -- cgit v1.2.3-70-g09d2