riscv64-reduce-debug.patch 668 B

123456789101112131415161718192021222324
  1. commit 29ff842dfe33d172d115a90ab69cc240426dad04
  2. Author: q66 <q66@chimera-linux.org>
  3. Date: Tue Oct 4 10:45:28 2022 +0200
  4. reduce debug_info on riscv
  5. diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure
  6. index e64dc5d..e3e1fbd 100644
  7. --- a/build/moz.configure/rust.configure
  8. +++ b/build/moz.configure/rust.configure
  9. @@ -653,7 +653,11 @@ def rust_compile_flags(
  10. debug_assertions = False
  11. if debug_symbols:
  12. - debug_info = "2"
  13. + # linking fails with full debug info on riscv
  14. + if target.cpu == "riscv64":
  15. + debug_info = "1"
  16. + else:
  17. + debug_info = "2"
  18. opts = []