public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cachelib] epel10: Use clang on releases with GCC 12
@ 2026-10-08 8:26 Michel Alexandre Salim
0 siblings, 0 replies; only message in thread
From: Michel Alexandre Salim @ 2026-10-08 8:26 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/cachelib
Branch : epel10
Commit : 22d447db55b9462782dfdd8b3e56c6b2f7e45d20
Author : Michel Alexandre Salim <salimma@fedoraproject.org>
Date : 2022-03-08T19:29:23-08:00
Stats : +19/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/cachelib/c/22d447db55b9462782dfdd8b3e56c6b2f7e45d20?branch=epel10
Log:
Use clang on releases with GCC 12
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
---
diff --git a/cachelib.spec b/cachelib.spec
index d404dbe..9d976e6 100644
--- a/cachelib.spec
+++ b/cachelib.spec
@@ -1,3 +1,14 @@
+%if 0%{?fedora} >= 36
+# Folly is compiled with Clang
+%bcond_without toolchain_clang
+%else
+%bcond_with toolchain_clang
+%endif
+
+%if %{with toolchain_clang}
+%global toolchain clang
+%endif
+
# Tests currently fail with
# /builddir/build/BUILD/CacheLib-e3703aade03d359d290936b334ab81ca4a856b41/cachelib/compact_cache/tests/CCacheTests.cpp:159:1: required from here
# /builddir/build/BUILD/CacheLib-e3703aade03d359d290936b334ab81ca4a856b41/cachelib/../cachelib/compact_cache/CCacheFixedLruBucket.h:277:11: internal compiler error: Floating point exception
@@ -35,6 +46,10 @@ Patch1: %{name}-find-gtest.patch
# Folly is known not to work on big-endian CPUs
# https://bugzilla.redhat.com/show_bug.cgi?id=1892151
ExcludeArch: s390x
+%if 0%{?fedora} >= 36
+# fmt code breaks: https://bugzilla.redhat.com/show_bug.cgi?id=2061022
+ExcludeArch: ppc64le
+%endif
# does not compile cleanly on 32-bit arches
# https://bugzilla.redhat.com/show_bug.cgi?id=2036124
%if 0%{?el8}
@@ -48,7 +63,11 @@ ExcludeArch: %{ix86}
ExcludeArch: aarch64
BuildRequires: cmake
+%if %{with toolchain_clang}
+BuildRequires: clang
+%else
BuildRequires: gcc-c++
+%endif
BuildRequires: fbthrift-devel
BuildRequires: fizz-devel
BuildRequires: folly-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-08 8:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 8:26 [rpms/cachelib] epel10: Use clang on releases with GCC 12 Michel Alexandre Salim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox