diff --git a/compiler-rt.spec b/compiler-rt.spec index 2d929fe..70766a4 100644 --- a/compiler-rt.spec +++ b/compiler-rt.spec @@ -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