blob: e1f780d73a4f77851dfe34ce4a91c9fe09d5bf59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 = []
|