From cdfbcca82242da6125d5a8fff8bd866e7babf1fc Mon Sep 17 00:00:00 2001 From: "yan.yihao 10263201" Date: Thu, 8 May 2025 17:22:35 +0800 Subject: [PATCH] add support for RISC-V build --- lldb.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lldb.spec b/lldb.spec index 1e1ec5f..5dc92ee 100644 --- a/lldb.spec +++ b/lldb.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global toolchain clang %undefine _include_frame_pointers @@ -59,7 +59,11 @@ The %{name}-doc package contains documentation files for %{name}. %autosetup -n %{name}-%{version}.src -p2 %build +%ifarch riscv64 +%global _lto_cflags %{nil} +%else %global _lto_cflags -flto=thin +%endif %cmake -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ @@ -119,6 +123,9 @@ rm -f %{buildroot}%{python3_sitearch}/six.* %doc CODE_OWNERS.txt %changelog +* Thu May 8 2025 Yihao Yan - 17.0.6-2 +- add support for riscv64 + * Wed Mar 27 2024 Xiaoping Liu - 17.0.6-1 - update to 17.0.6 -- Gitee