public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llvm] rawhide: Fix the code that disables LTO on s390x
@ 2026-09-30 19:17 Tulio Magno Quites Machado Filho
0 siblings, 0 replies; only message in thread
From: Tulio Magno Quites Machado Filho @ 2026-09-30 19:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/llvm
Branch : rawhide
Commit : 4c35c62d70bdbc9993911ecd192d4778fe7a6c1c
Author : Tulio Magno Quites Machado Filho <tuliom@redhat.com>
Date : 2026-09-30T16:16:13-03:00
Stats : +2/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/llvm/c/4c35c62d70bdbc9993911ecd192d4778fe7a6c1c?branch=rawhide
Log:
Fix the code that disables LTO on s390x
The previous commit referred to pgo instead of lto_build causing an
interesting behavior: lto_build became disabled because the code path
stopped enabling lto_build which is disabled by default.
Remove the confusion by ensuring that lto_build is disabled on s390x the
same way as the other architectures.
Fixes: 2e159bf903f5 (Disable PGO and LTO on s390x on LLVM >= 23, 2026-06-09)
[skip changelog]
---
diff --git a/llvm.spec b/llvm.spec
index 7a0e51f..31508c5 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -231,12 +231,9 @@ end
#endregion pgo
# Disable LTO on x86 and riscv in order to reduce memory consumption.
-%ifarch %ix86 riscv64
-%bcond_with lto_build
-%else
# Disable LTO on s390x in order to reduce LLVM build time.
-%ifarch s390x
-%bcond_with pgo
+%ifarch %ix86 riscv64 s390x
+%bcond_with lto_build
%else
%if %{defined rhel} && 0%{?rhel} <= 8
# LTO builds got enabled on Fedora and RHEL >= 9 only.
@@ -245,7 +242,6 @@ end
%bcond_without lto_build
%endif
%endif
-%endif
# Use LLD instead of the system linker by default.
# This is required if PGO is enabled.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-30 19:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30 19:17 [rpms/llvm] rawhide: Fix the code that disables LTO on s390x Tulio Magno Quites Machado Filho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox