Skip to content

Add support for aarch64 musl #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions ci-targets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,24 @@ linux:
- lto
run: true

aarch64-unknown-linux-musl:
arch: aarch64
libc: musl
python_versions:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
build_options:
- debug+static
- noopt+static
- lto+static
- debug
- noopt
- lto
run: true

windows:
i686-pc-windows-msvc:
arch: x86
Expand Down
48 changes: 48 additions & 0 deletions cpython-unix/targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1150,3 +1150,51 @@ x86_64_v4-unknown-linux-musl:
- xz
- zlib
openssl_target: linux-x86_64

aarch64-unknown-linux-musl:
host_platforms:
- linux64
pythons_supported:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
needs_toolchain: true
# TODO: Actually populate these compilers?
docker_image_suffix: .cross
host_cc: /usr/bin/x86_64-linux-musl-gcc
host_cxx: /usr/bin/x86_64-linux-musl-g++
target_cc: /usr/bin/aarch64-linux-musl-gcc
target_cxx: /usr/bin/aarch64-linux-musl-g++
target_cc: musl-clang
target_cxx: clang++ # TODO: Explore a musl-clang++ shim?
target_cflags:
- '-fvisibility=hidden'
needs:
- autoconf
- bdb
- binutils
- bzip2
- expat
- libedit
- libffi-3.3
- libX11
- libXau
- libxcb
- m4
- mpdecimal
- musl
- ncurses
- openssl-3.0
- patchelf
- sqlite
- tcl
- tk
- tix
- uuid
- xorgproto
- xz
- zlib
openssl_target: linux-aarch64
Loading