forked from pool/python314
Use LLVM21 to build python314
Add patch gh138498-llvm-version-config.patch bsc#1254826, gh#python/cpython#138498
This commit is contained in:
@@ -54,6 +54,8 @@
|
||||
%bcond_with GIL
|
||||
%endif
|
||||
|
||||
%define llvm_version 21
|
||||
|
||||
%if 0%{?do_profiling} && !0%{?want_reproducible_builds}
|
||||
%bcond_without profileopt
|
||||
%else
|
||||
@@ -209,6 +211,8 @@ Patch07: bpo-31046_ensurepip_honours_prefix.patch
|
||||
# PATCH-FIX-SLE skip-test_pyobject_freed_is_freed.patch mcepl@suse.com
|
||||
# skip a test failing on SLE-15
|
||||
Patch09: skip-test_pyobject_freed_is_freed.patch
|
||||
# PATCH-FIX-UPSTREAM gh138498-llvm-version-config gh#python/cpython#138498 daniel.garcia@suse.com
|
||||
Patch10: gh138498-llvm-version-config.patch
|
||||
# PATCH-FIX-OPENSUSE CVE-2023-52425-libexpat-2.6.0-backport-15.6.patch
|
||||
# This problem on libexpat is patched on 15.6 without version
|
||||
# update, this patch changes the tests to match the libexpat provided
|
||||
@@ -275,7 +279,7 @@ BuildRequires: python3-python-docs-theme >= 2022.1
|
||||
|
||||
%if %{with experimental_jit}
|
||||
# needed for experimental_jit
|
||||
BuildRequires: clang19 llvm19
|
||||
BuildRequires: clang%{llvm_version} llvm%{llvm_version}
|
||||
BuildRequires: llvm
|
||||
%endif
|
||||
|
||||
@@ -581,6 +585,7 @@ sed -e 's/-fprofile-correction//' -i Makefile.pre.in
|
||||
%endif
|
||||
|
||||
export CFLAGS="%{optflags} -IVendor/"
|
||||
export LLVM_VERSION=%{llvm_version}
|
||||
|
||||
%configure \
|
||||
--with-platlibdir=%{_lib} \
|
||||
|
||||
Reference in New Issue
Block a user