Skip to content

enable building aarch64-linux targets from macOS#890

Merged
jjhelmus merged 1 commit intoastral-sh:mainfrom
jjhelmus:build_linux_on_macos
Nov 25, 2025
Merged

enable building aarch64-linux targets from macOS#890
jjhelmus merged 1 commit intoastral-sh:mainfrom
jjhelmus:build_linux_on_macos

Conversation

@jjhelmus
Copy link
Contributor

Add the ability to build for aarch64-unknown-linux-{musl,gnu} platforms on an arm64 macOS host using Docker.

For example using:
./build-linux.py --target-triple aarch64-unknown-linux-musl --python cpython-3.14

Add the ability to build for aarch64-unknown-linux-{musl,gnu}
platforms on an arm64 macOS host using Docker.

For example using:
    ./build-linux.py --target-triple aarch64-unknown-linux-musl --python cpython-3.14
@jjhelmus jjhelmus merged commit f98de0c into astral-sh:main Nov 25, 2025
539 of 540 checks passed
building_linux_from_macos = sys.platform == "darwin" and "linux" in target_triple
if building_linux_from_macos:
print("Note: Using Docker to build for Linux on macOS")
args.no_docker = False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a little dubious as an implementation. I'd expect us not to mutate args and I'd expect --no-docker to cause a failure in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants