public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/llvm] rawhide: Set compiler defaults to match OS baselines
Date: Tue, 30 Jun 2026 14:50:38 GMT	[thread overview]
Message-ID: <178283103882.1.16283222306633650573.rpms-llvm-3c0e21955e06@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/llvm
            Branch : rawhide
            Commit : 3c0e21955e06f17e96390f8d6a5852adada6c39a
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-06-26T13:24:24-04:00
            Stats  : +43/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/llvm/c/3c0e21955e06f17e96390f8d6a5852adada6c39a?branch=rawhide

            Log:
            Set compiler defaults to match OS baselines

This corresponds to the settings in GCC for when clang is used outside of
package building.

Resolves: rhbz#1952630

---
diff --git a/llvm.spec b/llvm.spec
index 78ddf57..e241abc 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -1538,6 +1538,49 @@ cd llvm/utils/lit
 %global cfg_file_content %{gcc_triple}
 %global cfg_file_content_flang %{gcc_triple}
 
+%ifarch ppc64le
+%if 0%{?rhel} >= 10
+%global cfg_file_content %{cfg_file_content} -mcpu=power9 -mtune=power10
+%else
+%if 0%{?rhel} >= 9
+%global cfg_file_content %{cfg_file_content} -mcpu=power9 -mtune=power9
+%else
+# Fedora, RHEL 8
+%global cfg_file_content %{cfg_file_content} -mcpu=power8 -mtune=power8
+%endif
+%endif
+%endif
+
+%ifarch s390x
+%if 0%{?rhel} >= 11 || 0%{?fedora} >= 45
+%global cfg_file_content %{cfg_file_content} -march=z15 -mtune=z17
+%else
+%if 0%{?rhel} >= 10
+%global cfg_file_content %{cfg_file_content} -march=z14 -mtune=z16
+%else
+%if 0%{?rhel} >= 9
+%global cfg_file_content %{cfg_file_content} -march=z14 -mtune=z15
+%else
+# Fedora 44 and earlier, RHEL 8
+%global cfg_file_content %{cfg_file_content} -march=z13 -mtune=z14
+%endif
+%endif
+%endif
+%endif
+
+%ifarch x86_64
+%if 0%{?rhel} >= 10
+%global cfg_file_content %{cfg_file_content} -march=x86-64-v3
+%else
+%if 0%{?rhel} >= 9
+%global cfg_file_content %{cfg_file_content} -march=x86-64-v2
+%else
+# Fedora, RHEL 8
+%global cfg_file_content %{cfg_file_content} -march=x86-64
+%endif
+%endif
+%endif
+
 # We want to use DWARF-5 on all snapshot builds.
 %if %{without snapshot_build} && %{defined rhel} && 0%{?rhel} < 10
 %global cfg_file_content %{cfg_file_content} -gdwarf-4 -g0

                 reply	other threads:[~2026-06-30 14:50 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=178283103882.1.16283222306633650573.rpms-llvm-3c0e21955e06@fedoraproject.org \
    --to=yselkowi@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