Skip to content

Commit d8111a0

Browse files
committed
Handle musl aarch64 case
1 parent ac2ddaa commit d8111a0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cpython-unix/build-cpython.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,8 +1077,14 @@ touch "${LIB_DYNLOAD}/.empty"
10771077

10781078
# Symlink libpython so we don't have 2 copies.
10791079
case "${TARGET_TRIPLE}" in
1080-
aarch64-unknown-linux-gnu)
1081-
PYTHON_ARCH="aarch64-linux-gnu"
1080+
aarch64-unknown-linux-*)
1081+
# In Python 3.13+, the musl target is identified in cross compiles and the output directory
1082+
# is named accordingly.
1083+
if [[ "${CC}" = "musl-clang" && -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" ]]; then
1084+
PYTHON_ARCH="aarch64-linux-musl"
1085+
else
1086+
PYTHON_ARCH="aarch64-linux-gnu"
1087+
fi
10821088
;;
10831089
# This is too aggressive. But we don't have patches in place for
10841090
# setting the platform name properly on non-Darwin.

0 commit comments

Comments
 (0)