aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-12-29 20:42:27 +0100
committerRasmus Thomsen <oss@cogitri.dev>2019-12-29 21:48:01 +0100
commitb9caedc951cb2c26893e6513e37ba15bfcc629fb (patch)
tree2cdbcdca6f781723262268b997c9013b4ccd3b2f
parent54b9b662334e651414b993f2408f25bdc3f280c5 (diff)
downloadaports-b9caedc951cb2c26893e6513e37ba15bfcc629fb.tar.bz2
aports-b9caedc951cb2c26893e6513e37ba15bfcc629fb.tar.xz
testing/firefox: disable debugging on 32-bit to lower mem usage on builders
Right now rustc is trying to allocate more than 4GB on these arches, which fails for obivous reasons.
-rw-r--r--testing/firefox/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/testing/firefox/APKBUILD b/testing/firefox/APKBUILD
index 8f83d046a9..9668a917da 100644
--- a/testing/firefox/APKBUILD
+++ b/testing/firefox/APKBUILD
@@ -156,7 +156,15 @@ build() {
# FF doesn't have SIMD available on these arches.
case "$CARCH" in
- armhf|armv7) _rust_simd="--disable-rust-simd" ;;
+ armhf|armv7)
+ _rust_simd="--disable-rust-simd"
+ _low_mem_flags="--disable-debug-symbols --disable-debug"
+ export RUSTFLAGS="$RUSTFLAGS -C debuginfo=0"
+ ;;
+ x86)
+ _low_mem_flags="--disable-debug-symbols --disable-debug"
+ export RUSTFLAGS="$RUSTFLAGS -C debuginfo=0"
+ ;;
*) _rust_simd="--enable-rust-simd" ;;
esac
@@ -181,6 +189,7 @@ build() {
--enable-system-sqlite \
--enable-ffmpeg \
$_rust_simd \
+ $_low_mem_flags \
--enable-hardening \
--with-system-bz2 \
--with-system-icu \