-
Notifications
You must be signed in to change notification settings - Fork 28
fix: switch to cross for cross-compilation #5
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
Conversation
Hey @brainstorm ! Could you tell me if this PR solves the issue for you on an M1 mac? I tried on an Intel Mac and Linux and it worked, but I don't have an M1 mac unfortunately. |
Hey @nmoutschen, thanks for iterating on this! Unfortunately it does not work on my M1:
|
Docker is not installed on MacOS, which is needed for cross: https://github.community/t/why-is-docker-not-installed-on-macos/17017
So I guess at this point it's either podman: https://news.ycombinator.com/item?id=28429650 Or the older Docker workaround you pointed at: https://github.community/t/why-is-docker-not-installed-on-macos/17017/7 I'd prefer to have it solved natively though (cargo build), but I get it can be tricky to fix up properly... happy to test out things you throw my way in any case ;) |
Using cross works for me on archlinux. I needed to install
Building with cross worked & passed all the tests |
Thanks @ScriptSmith ! I'm going to merge this for now, but keep the issue on M1 macs open until I find a way to reproduce/explore this. |
Issue #, if available: #2
Description of changes:
Switch to cross for cross-compiling to aarch64-unknown-linux-gnu.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.