Skip to content

Commit a81a1ba

Browse files
committed
Another patch rebuilt for 3.13.
1 parent 64595b5 commit a81a1ba

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

cpython-unix/build-cpython.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ fi
9797
# Configure nerfs RUNSHARED when cross-compiling, which prevents PGO from running when
9898
# we can in fact run the target binaries (e.g. x86_64 host and i686 target). Undo that.
9999
if [ -n "${CROSS_COMPILING}" ]; then
100-
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_11}" ]; then
100+
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" ]; then
101+
patch -p1 -i ${ROOT}/patch-dont-clear-runshared-13.patch
102+
elif [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_11}" ]; then
101103
patch -p1 -i ${ROOT}/patch-dont-clear-runshared.patch
102104
else
103105
patch -p1 -i ${ROOT}/patch-dont-clear-runshared-legacy.patch
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff -u 13-a/configure.ac 13-b/configure.ac
2+
--- 13-a/configure.ac 2024-05-08 05:21:00.000000000 -0400
3+
+++ 13-b/configure.ac 2024-05-19 12:44:04.530770938 -0400
4+
@@ -1564,10 +1564,6 @@
5+
fi
6+
AC_MSG_RESULT([$LDLIBRARY])
7+
8+
-if test "$cross_compiling" = yes; then
9+
- RUNSHARED=
10+
-fi
11+
-
12+
AC_MSG_CHECKING([HOSTRUNNER])
13+
AC_ARG_VAR([HOSTRUNNER], [Program to run CPython for the host platform])
14+
if test -z "$HOSTRUNNER"

0 commit comments

Comments
 (0)