Disable JIT compilation on EPEL 10.0

clang 18 is not available there.
This commit is contained in:
Karolina Surma 2025-10-08 14:59:03 +02:00
commit 900ee2da17

View file

@ -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