public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Josh Stone <jistone@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust] rawhide: Prefer clang when custom toolchains are supported
Date: Fri, 20 Nov 2026 17:25:24 GMT	[thread overview]
Message-ID: <179519552461.1.2161805095933990779.rpms-rust-3287cfe38e43@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust
Branch : rawhide
Commit : 3287cfe38e433d025ca9cd6d88825e130dc20c17
Author : Josh Stone <jistone@redhat.com>
Date   : 2026-11-19T17:16:18-08:00
Stats  : +8/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rust/c/3287cfe38e433d025ca9cd6d88825e130dc20c17?branch=rawhide

Log:
Prefer clang when custom toolchains are supported

---
diff --git a/rust.spec b/rust.spec
index 4337e5b..daf8aad 100644
--- a/rust.spec
+++ b/rust.spec
@@ -279,9 +279,16 @@ BuildRequires:  gnupg2
 BuildRequires:  gpgverify
 %endif
 
-BuildRequires:  make
+# Prefer clang when custom toolchains are supported (Fedora, RHEL >= 9)
+%if %defined toolchain
+%global toolchain clang
+BuildRequires:  clang%{?llvm_compat_version}
+%else
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
+%endif
+
+BuildRequires:  make
 BuildRequires:  ncurses-devel
 # explicit curl-devel to avoid httpd24-curl (rhbz1540167)
 BuildRequires:  curl-devel

                 reply	other threads:[~2026-11-20 17:25 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=179519552461.1.2161805095933990779.rpms-rust-3287cfe38e43@fedoraproject.org \
    --to=jistone@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