public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Alexandre Salim <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/cachelib] epel10: Use clang on releases with GCC 12
Date: Thu, 08 Oct 2026 08:26:01 GMT [thread overview]
Message-ID: <179144796183.1.5846213057113607419.rpms-cachelib-22d447db55b9@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-08 8:26 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=179144796183.1.5846213057113607419.rpms-cachelib-22d447db55b9@fedoraproject.org \
--to=salimma@fedoraproject.org \
--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