From 190ba74f0ec350f11284a4bb7344dda3eb22eb2b Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 19 Mar 2025 16:29:17 -0500 Subject: [PATCH] Add support for aarch64 musl --- ci-targets.yaml | 18 +++++++++++++++ cpython-unix/targets.yml | 48 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/ci-targets.yaml b/ci-targets.yaml index cd892ac9..93c8833a 100644 --- a/ci-targets.yaml +++ b/ci-targets.yaml @@ -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 diff --git a/cpython-unix/targets.yml b/cpython-unix/targets.yml index 1b179768..b2e5e9a4 100644 --- a/cpython-unix/targets.yml +++ b/cpython-unix/targets.yml @@ -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