Skip to content

Commit 0d07a8b

Browse files
authored
Remove multiarch patch (#917)
--print-multiarch reporting an incorrect triple was a bug in LLVM that was fixed. With the project now using LLVM 21+ (#916) the patches to remove this check during configuration are no necessary. closes #865
1 parent f322ad6 commit 0d07a8b

File tree

5 files changed

+0
-58
lines changed

5 files changed

+0
-58
lines changed

cpython-unix/build-cpython-host.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,6 @@ tar -xf Python-${PYTHON_VERSION}.tar.xz
3434

3535
pushd "Python-${PYTHON_VERSION}"
3636

37-
# Clang 13 actually prints something with --print-multiarch, confusing CPython's
38-
# configure. This is reported as https://bugs.python.org/issue45405. We nerf the
39-
# check since we know what we're doing.
40-
if [[ "${CC}" = "clang" || "${CC}" = "musl-clang" ]]; then
41-
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" ]; then
42-
patch -p1 -i ${ROOT}/patch-disable-multiarch-13.patch
43-
else
44-
patch -p1 -i ${ROOT}/patch-disable-multiarch.patch
45-
fi
46-
fi
47-
4837
autoconf
4938

5039
# When cross-compiling, we need to build a host Python that has working zlib

cpython-unix/build-cpython.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,6 @@ elif [ -n "${PYTHON_MEETS_MAXIMUM_VERSION_3_12}" ]; then
116116
patch -p1 -i ${ROOT}/patch-cpython-configure-target-triple-musl-3.12.patch
117117
fi
118118

119-
# Clang 13 actually prints something with --print-multiarch, confusing CPython's
120-
# configure. This is reported as https://bugs.python.org/issue45405. We nerf the
121-
# check since we know what we're doing.
122-
if [[ "${CC}" = "clang" || "${CC}" = "musl-clang" ]]; then
123-
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" ]; then
124-
patch -p1 -i ${ROOT}/patch-disable-multiarch-13.patch
125-
else
126-
patch -p1 -i ${ROOT}/patch-disable-multiarch.patch
127-
fi
128-
fi
129-
130119
# Python 3.11 supports using a provided Python to use during bootstrapping
131120
# (e.g. freezing). Normally it only uses this Python during cross-compiling.
132121
# This patch forces always using it. See comment related to

cpython-unix/build.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,6 @@ def build_cpython_host(
428428

429429
support = {
430430
"build-cpython-host.sh",
431-
"patch-disable-multiarch.patch",
432-
"patch-disable-multiarch-13.patch",
433431
}
434432
for s in sorted(support):
435433
build_env.copy_file(SUPPORT / s)

cpython-unix/patch-disable-multiarch-13.patch

Lines changed: 0 additions & 17 deletions
This file was deleted.

cpython-unix/patch-disable-multiarch.patch

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)