Skip to content

Commit 4a78a31

Browse files
committed
Fix PYTHON_ARCH for x86_64-unknown-linux musl-clang cross compiles
1 parent f126b0a commit 4a78a31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cpython-unix/build-cpython.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -757,12 +757,12 @@ ppc64le-unknown-linux-gnu)
757757
s390x-unknown-linux-gnu)
758758
PYTHON_ARCH="s390x-linux-gnu"
759759
;;
760-
x86_64-unknown-linux-musl)
761-
PYTHON_ARCH="x86_64-linux-musl"
762-
;;
763760
x86_64-unknown-linux-*)
764-
echo "TARGET_TRIPLE=${TARGET_TRIPLE}"
765-
PYTHON_ARCH="x86_64-linux-gnu"
761+
if [ "${CC}" = "musl-clang" ]; then
762+
PYTHON_ARCH="x86_64-linux-musl"
763+
else
764+
PYTHON_ARCH="x86_64-linux-gnu"
765+
fi
766766
;;
767767
*)
768768
echo "unhandled target triple: ${TARGET_TRIPLE}"

0 commit comments

Comments
 (0)