Disable LTO on riscv64

Thin LTO is not supported by the GCC.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-08-19 10:59:26 +03:00
parent 86aa8d2f10
commit 2761d5d1b4
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 5 additions and 2 deletions

View File

@ -73,7 +73,7 @@
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 3.1.riscv64%{?dist}
Release: 3.2.riscv64%{?dist}
Summary: The Low Level Virtual Machine
License: NCSA
@ -214,7 +214,7 @@ LLVM's modified googletest sources.
%build
%ifarch s390 s390x
%ifarch s390 s390x riscv64
# Fails with "exceeded PCRE's backtracking limit"
%global _lto_cflags %nil
%else
@ -554,6 +554,9 @@ fi
%endif
%changelog
* Fri Aug 19 2022 David Abdurachmanov <davidlt@rivosinc.com> - 14.0.5-3.2.riscv64
- Disable LTO on riscv64 (there is no thin LTO on GCC)
* Fri Aug 19 2022 David Abdurachmanov <davidlt@rivosinc.com> - 14.0.5-3.1.riscv64
- Build with GCC on riscv64