Skip to content

Commit

Permalink
Fix PYTHON_ARCH for x86_64-unknown-linux musl-clang cross compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Sep 5, 2024
1 parent f126b0a commit 4a78a31
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -757,12 +757,12 @@ ppc64le-unknown-linux-gnu)
s390x-unknown-linux-gnu)
PYTHON_ARCH="s390x-linux-gnu"
;;
x86_64-unknown-linux-musl)
PYTHON_ARCH="x86_64-linux-musl"
;;
x86_64-unknown-linux-*)
echo "TARGET_TRIPLE=${TARGET_TRIPLE}"
PYTHON_ARCH="x86_64-linux-gnu"
if [ "${CC}" = "musl-clang" ]; then
PYTHON_ARCH="x86_64-linux-musl"
else
PYTHON_ARCH="x86_64-linux-gnu"
fi
;;
*)
echo "unhandled target triple: ${TARGET_TRIPLE}"
Expand Down

0 comments on commit 4a78a31

Please sign in to comment.