Disable LTO on riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-10-08 19:25:06 +03:00
parent ec635bd256
commit 4469d76e34
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 8 additions and 1 deletions

View File

@ -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 <davidlt@rivosinc.com> - 15.0.0-3.0.riscv64
- Disable LTO on riscv64
* Wed Sep 14 2022 Nikita Popov <npopov@redhat.com> - 15.0.0-3
- Run tests during the build