Skip to content

Cross-compilation to macos aarch64-apple-darwin target using Maturin Docker #1768

Closed Answered by messense
mikwieczorek asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Is there a straightforward way to cross-compile to macOS aarch64-apple-darwin using the maturin Docker image?

No, the docker image is for native compilation only.

2. Do I need to use osxcross with maturin for cross-compilation?

No, but you can use it, there is nothing in maturin that prevents you from using a custom toolchain. You can use zig, but you should probably use zig 0.10.1 instead of 0.11.x because zig 0.11.x errors on unsuppported linker flags (instead of warning like in 0.10.1).

3. Could you provide a minimal working example for either of the above methods?

Sorry I don't have the free time to do that.

It's hard to guess what's the real problem without a repro, so please…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mikwieczorek
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants