public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust] rawhide: Prefer clang when custom toolchains are supported
@ 2026-11-20 17:25 Josh Stone
  0 siblings, 0 replies; only message in thread
From: Josh Stone @ 2026-11-20 17:25 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-20 17:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 17:25 [rpms/rust] rawhide: Prefer clang when custom toolchains are supported Josh Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox