aboutsummaryrefslogtreecommitdiff
path: root/repos/clang/firefox/riscv64-reduce-debug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'repos/clang/firefox/riscv64-reduce-debug.patch')
-rw-r--r--repos/clang/firefox/riscv64-reduce-debug.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/repos/clang/firefox/riscv64-reduce-debug.patch b/repos/clang/firefox/riscv64-reduce-debug.patch
new file mode 100644
index 00000000..e1f780d7
--- /dev/null
+++ b/repos/clang/firefox/riscv64-reduce-debug.patch
@@ -0,0 +1,23 @@
+commit 29ff842dfe33d172d115a90ab69cc240426dad04
+Author: q66 <q66@chimera-linux.org>
+Date: Tue Oct 4 10:45:28 2022 +0200
+
+ reduce debug_info on riscv
+
+diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure
+index e64dc5d..e3e1fbd 100644
+--- a/build/moz.configure/rust.configure
++++ b/build/moz.configure/rust.configure
+@@ -653,7 +653,11 @@ def rust_compile_flags(
+ debug_assertions = False
+
+ if debug_symbols:
+- debug_info = "2"
++ # linking fails with full debug info on riscv
++ if target.cpu == "riscv64":
++ debug_info = "1"
++ else:
++ debug_info = "2"
+
+ opts = []
+