From 4469d76e343ce859c9603750caf9f29176d31660 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Sat, 8 Oct 2022 19:25:06 +0300 Subject: [PATCH] Disable LTO on riscv64 Signed-off-by: David Abdurachmanov --- mlir.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mlir.spec b/mlir.spec index 4286151..138106e 100644 --- a/mlir.spec +++ b/mlir.spec @@ -5,9 +5,13 @@ %global mlir_version %{maj_ver}.%{min_ver}.%{patch_ver} %global mlir_srcdir llvm-project-%{mlir_version}%{?rc_ver:rc%{rc_ver}}.src +%ifarch riscv64 +%global _lto_cflags %{nil} +%endif + Name: mlir Version: %{mlir_version}%{?rc_ver:~rc%{rc_ver}} -Release: 3%{?dist} +Release: 3.0.riscv64%{?dist} Summary: Multi-Level Intermediate Representation Overview License: Apache-2.0 WITH LLVM-exception @@ -119,6 +123,9 @@ export LD_LIBRARY_PATH=%{buildroot}/%{_libdir} %{_libdir}/cmake/mlir %changelog +* Sat Oct 08 2022 David Abdurachmanov - 15.0.0-3.0.riscv64 +- Disable LTO on riscv64 + * Wed Sep 14 2022 Nikita Popov - 15.0.0-3 - Run tests during the build