firefox: decrease memory requirements for 32bit builders.

Flags pulled from Alpine build.

Failure can be seen in
https://build.voidlinux.org/builders/i686_builder/builds/31550/steps/shell_3/logs/stdio
> 79:15.36   cargo:warning=virtual memory exhausted: Cannot allocate memory
This commit is contained in:
Érico Nogueira 2021-04-02 23:15:14 -03:00
parent c981d600b1
commit 80e01c6f67

View file

@ -135,6 +135,8 @@ do_build() {
# work around large debug symbols on 32-bit hosts
if [ "$XBPS_WORDSIZE" = "32" ]; then
echo "ac_add_options --disable-debug-symbols" >>.mozconfig
echo "ac_add_options --disable-debug" >>.mozconfig
export LDFLAGS+=" -Wl,--no-keep-memory"
# patch the rust debug level, this is hardcoded
vsed -i 's/debug_info = "2"/debug_info = "0"/' \