Try again to disable LTO on riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-04-03 13:50:08 +03:00
parent d76f964b44
commit 21574064e4
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 1 additions and 7 deletions

View File

@ -9,13 +9,9 @@
# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93615
%global optflags %(echo %{optflags} -Dasm=__asm__)
%ifarch riscv64
%global _clang_lto_cflags %{nil}
%global _lto_cflags %{nil}
%endif
%ifarch riscv64
%define _lto_cflags %{nil}
%endif
Name: compiler-rt
Version: %{compiler_rt_version}%{?rc_ver:~rc%{rc_ver}}
@ -54,9 +50,7 @@ instrumentation, and Blocks C language extension.
%py3_shebang_fix lib/hwasan/scripts/hwasan_symbolize
%build
%ifarch riscv64
%define _lto_cflags %{nil}
%endif
# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
export ASMFLAGS=$CFLAGS