public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llvm] rawhide: Disable CIR on LLVM >= 24
@ 2026-10-31  1:09 Tulio Magno Quites Machado Filho
  0 siblings, 0 replies; only message in thread
From: Tulio Magno Quites Machado Filho @ 2026-10-31  1:09 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/llvm
            Branch : rawhide
            Commit : f23ecb8f6f3464559714e60b2854b98c72b2a5ef
            Author : Tulio Magno Quites Machado Filho <tuliom@redhat.com>
            Date   : 2026-10-30T08:45:21-03:00
            Stats  : +7/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/llvm/c/f23ecb8f6f3464559714e60b2854b98c72b2a5ef?branch=rawhide

            Log:
            Disable CIR on LLVM >= 24

Starting with LLVM 24, CIR is enabled by default.
Enabling it means that parts of MLIR gets built and installed.

Source: https://github.com/llvm/llvm-project/pull/221291

---
diff --git a/llvm.spec b/llvm.spec
index b1db39e..bcefbb6 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -1751,6 +1751,13 @@ popd
 	%global cmake_common_args %{cmake_common_args} -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG"
 %endif
 
+%if %{maj_ver} >= 24
+# ClangIR got enabled by default in LLVM 24.
+# Building CIR means that parts of MLIR are installed. We cannot support this
+# in CentOS/RHEL. Disable it in all builds for now.
+%global cmake_common_args %{cmake_common_args} -DCLANG_ENABLE_CIR=OFF
+%endif
+
 %global cmake_config_args %{cmake_common_args}
 
 #region clang options

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

only message in thread, other threads:[~2026-10-31  1:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-31  1:09 [rpms/llvm] rawhide: Disable CIR on LLVM >= 24 Tulio Magno Quites Machado Filho

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