public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/llvm] f45: Fix the code that disables LTO on s390x
Date: Thu, 05 Nov 2026 15:46:47 GMT [thread overview]
Message-ID: <179389360703.1.1728194361862428810.rpms-llvm-4c35c62d70bd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/llvm
Branch : f45
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=f45
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.
next reply other threads:[~2026-11-05 15:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 15:46 Tulio Magno Quites Machado Filho [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-10-08 4:36 [rpms/llvm] f45: Fix the code that disables LTO on s390x Tulio Magno Quites Machado Filho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179389360703.1.1728194361862428810.rpms-llvm-4c35c62d70bd@fedoraproject.org \
--to=tuliom@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox