aboutsummaryrefslogtreecommitdiff
path: root/deb_patches/reduce-rust-debuginfo.patch
diff options
context:
space:
mode:
authorohfp <1813007-ohfp@users.noreply.gitlab.com>2021-02-01 13:29:58 +0100
committerohfp <1813007-ohfp@users.noreply.gitlab.com>2021-02-01 13:29:58 +0100
commitb623874e96cae8250e116c486b6a1b885889e511 (patch)
treee7cb96ee373072757e10794a11a46eaedf1363d6 /deb_patches/reduce-rust-debuginfo.patch
parentfix Changelog (diff)
downloadlibrewolf-linux-b623874e96cae8250e116c486b6a1b885889e511.tar.gz
librewolf-linux-b623874e96cae8250e116c486b6a1b885889e511.tar.bz2
librewolf-linux-b623874e96cae8250e116c486b6a1b885889e511.zip
test building tarball with some very preliminary patches
Diffstat (limited to 'deb_patches/reduce-rust-debuginfo.patch')
-rw-r--r--deb_patches/reduce-rust-debuginfo.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/deb_patches/reduce-rust-debuginfo.patch b/deb_patches/reduce-rust-debuginfo.patch
new file mode 100644
index 0000000..e6a9148
--- /dev/null
+++ b/deb_patches/reduce-rust-debuginfo.patch
@@ -0,0 +1,21 @@
+Description: reduce the rust debuginfo level
+ because compiling with debuginfo=2 causes the OOM killer to interrupt the build
+ on launchpad builders. Initially this was only on 32 bit architectures, but
+ with firefox 63 it started happening frequently on arm64 and ppc64el too,
+ with newer versions it started happening very frequently on s390x too, and with
+ firefox 84 (built with rustc 1.47) it started happening on amd64 too.
+ This patch would initially decrease debug_info for selected architectures, but
+ with recent versions of rustc pretty much all supported architectures are
+ affected, so it is now unconditional.
+
+--- a/build/moz.configure/toolchain.configure
++++ b/build/moz.configure/toolchain.configure
+@@ -2167,7 +2167,7 @@ def rust_compile_flags(opt_level, debug_
+ debug_assertions = False
+
+ if debug_symbols:
+- debug_info = "2"
++ debug_info = "1"
+
+ opts = []
+
bgstack15