From ddd8e1a8fab2ac39396282a7c09ddf6eca219613 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Wed, 12 Mar 2025 04:01:18 +0100 Subject: clang repos updated --- repos/clang/firefox/riscv64-reduce-debug.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 repos/clang/firefox/riscv64-reduce-debug.patch (limited to 'repos/clang/firefox/riscv64-reduce-debug.patch') 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 +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 = [] + -- cgit v1.2.3