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] rawhide: Fix the code that disables LTO on s390x
Date: Wed, 30 Sep 2026 19:17:18 GMT	[thread overview]
Message-ID: <179079583848.1.11861430954136252257.rpms-llvm-4c35c62d70bd@fedoraproject.org> (raw)

            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.

                 reply	other threads:[~2026-09-30 19:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179079583848.1.11861430954136252257.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