Try again to disable LTO on riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
d76f964b44
commit
21574064e4
|
@ -9,13 +9,9 @@
|
||||||
# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93615
|
# see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93615
|
||||||
%global optflags %(echo %{optflags} -Dasm=__asm__)
|
%global optflags %(echo %{optflags} -Dasm=__asm__)
|
||||||
|
|
||||||
%ifarch riscv64
|
%global _clang_lto_cflags %{nil}
|
||||||
%global _lto_cflags %{nil}
|
%global _lto_cflags %{nil}
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifarch riscv64
|
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: compiler-rt
|
Name: compiler-rt
|
||||||
Version: %{compiler_rt_version}%{?rc_ver:~rc%{rc_ver}}
|
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
|
%py3_shebang_fix lib/hwasan/scripts/hwasan_symbolize
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch riscv64
|
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
%endif
|
|
||||||
|
|
||||||
# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
|
# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files.
|
||||||
export ASMFLAGS=$CFLAGS
|
export ASMFLAGS=$CFLAGS
|
||||||
|
|
Loading…
Reference in New Issue