From 1ca1fba2902e633e135433c20e8e4ccd4c8cbee8 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 3 Nov 2023 10:18:42 +0200 Subject: [PATCH] Disable LTO and build with GCC Clang 16.0.4 failed twice already thus move back to GCC for now. Disable LTO to speedup the builds for now. Signed-off-by: David Abdurachmanov --- llvm.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/llvm.spec b/llvm.spec index 91f763b..249ae5a 100644 --- a/llvm.spec +++ b/llvm.spec @@ -7,7 +7,9 @@ # We are building with clang for faster/lower memory LTO builds. # See https://docs.fedoraproject.org/en-US/packaging-guidelines/#_compiler_macros +%ifnarch riscv64 %global toolchain clang +%endif # Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer # https://bugzilla.redhat.com/show_bug.cgi?id=2158587 @@ -28,7 +30,7 @@ %bcond_with check %endif -%ifarch %ix86 +%ifarch %ix86 riscv64 # Disable LTO on x86 in order to reduce memory consumption %bcond_with lto_build %elif %{with snapshot_build} @@ -109,7 +111,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} -Release: 1.0.riscv64%{?dist} +Release: 1.1.riscv64%{?dist} Summary: The Low Level Virtual Machine License: Apache-2.0 WITH LLVM-exception OR NCSA @@ -618,6 +620,10 @@ fi %changelog %{?llvm_snapshot_changelog_entry} +* Fri Nov 03 2023 David Abdurachmanov - 17.0.4-1.1.riscv64 +- Disable LTO build +- Build with GCC + * Thu Nov 02 2023 David Abdurachmanov - 17.0.4-1.0.riscv64 - Disable tests on riscv64 for now - Lower memory consumption on riscv64