From 900ee2da17b9705f8c2e1e1d145bc97e9b72d08f Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Wed, 8 Oct 2025 14:59:03 +0200 Subject: [PATCH] Disable JIT compilation on EPEL 10.0 clang 18 is not available there. --- python3.13.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python3.13.spec b/python3.13.spec index c24a443..07ab34b 100644 --- a/python3.13.spec +++ b/python3.13.spec @@ -78,10 +78,9 @@ License: Python-2.0.1 # PEP 744: JIT Compilation # Whether to build with the experimental JIT compiler -# We can only have this on Fedora 40+, where clang 18+ is available -# And only on certain architectures: https://peps.python.org/pep-0744/#support +# On EPEL 10.0 clang 18 is not available, hence it's disabled # The freethreading build (when enabled) does not support JIT yet -%bcond jit %[(0%{?fedora} >= 40 || 0%{?epel} >= 10) && ("%{_arch}" == "x86_64" || "%{_arch}" == "aarch64")] +%bcond jit 0 %if %{with jit} # When built with JIT, it still needs to be enabled on runtime via PYTHON_JIT=1 %global jit_flag --enable-experimental-jit=yes-off