public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llvm] rawhide: Remove gold dependency in rawhide
@ 2026-09-08 12:50 Nikita Popov
0 siblings, 0 replies; only message in thread
From: Nikita Popov @ 2026-09-08 12:50 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/llvm
Branch : rawhide
Commit : 98d8045790e39de45708708be263ce992a65c616
Author : Nikita Popov <npopov@redhat.com>
Date : 2026-09-07T09:59:16+02:00
Stats : +5/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/llvm/c/98d8045790e39de45708708be263ce992a65c616?branch=rawhide
Log:
Remove gold dependency in rawhide
binutils-gold has been dropped from rawhide in:
https://src.fedoraproject.org/rpms/binutils/c/e286ac089b76ce6c1f3f6b925348920ba5de30ca?branch=rawhide
Unlikely previous cases, it looks like this time is intentional.
Additionally, https://github.com/llvm/llvm-project/pull/130981
migrated most tests using ld.gold to using ld.bfd instead, so
also disable gold for LLVM >= 24. This is so this dependency gets
phased out for all operating systems in the future.
---
diff --git a/llvm.spec b/llvm.spec
index 11cbf27..9e3bbbd 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -13,8 +13,10 @@
# LLVMgold is a BFD plugin, not specific to the (deprecated) gold linker;
# however, some of its tests do use gold, which is packaged separately
-# since RHEL 9 but dropped in RHEL 11.
-%if %{undefined rhel} || (0%{?rhel} > 8 && 0%{?rhel} < 11)
+# since RHEL 9 but dropped in RHEL 11 and Fedora 46.
+# Since LLVM 24, most tests use ld.bfd instead, and gold is no longer needed.
+%if %{maj_ver} < 24
+%if (0%{?rhel} > 8 && 0%{?rhel} < 11) || (%{defined fedora} && 0%{?fedora} < 46)
%define gold_arches %{ix86} x86_64 aarch64 %{power64} s390x
%ifarch %{gold_arches}
%bcond_without gold
@@ -22,6 +24,7 @@
%bcond_with gold
%endif
%endif
+%endif
# Enable this in order to disable a lot of features and get to clang as fast
# as possible. This is useful in order to bisect issues affecting LLVM, clang
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-08 12:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-08 12:50 [rpms/llvm] rawhide: Remove gold dependency in rawhide Nikita Popov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox