From c0d0fa188edb8fa370856852f3cf7b5af2dd3129 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Tue, 25 Apr 2023 09:04:17 +0300 Subject: [PATCH] Disable LTO on riscv64 Signed-off-by: David Abdurachmanov --- lldb.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lldb.spec b/lldb.spec index 789ca93..663e8c4 100644 --- a/lldb.spec +++ b/lldb.spec @@ -11,7 +11,7 @@ Name: lldb Version: %{lldb_version}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 1.0.riscv64%{?dist} Summary: Next generation high-performance debugger License: Apache-2.0 WITH LLVM-exception OR NCSA @@ -73,7 +73,11 @@ The package contains the LLDB Python module. %autosetup -n %{lldb_srcdir} -p2 %build +%ifnarch riscv64 %global _lto_cflags -flto=thin +%else +%global _lto_cflags %{nil} +%endif %cmake -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ @@ -136,6 +140,9 @@ rm -f %{buildroot}%{python3_sitearch}/six.* %{python3_sitearch}/lldb %changelog +* Tue Apr 25 2023 David Abdurachmanov - 16.0.1-1.0.riscv64 +- Disable LTO on riscv64 + * Thu Apr 13 2023 Tulio Magno Quites Machado Filho - 16.0.1-1 - Update to LLVM 16.0.1