-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add support for compilation on apple silicon #13
Conversation
Any progress here? Switching to this branch also solved my problems with this lib on a M1. However, the need to add |
If you want to be clever you can use a conditional in the I know this isn't ideal, but I also maintained a rust environment for a while until I started doing this method instead. |
Hello @jayjun |
@jayjun +1 to the above! |
I've just tested it and it does fix my issues too, thanks @myobie 💙 |
I'd love to see this merged as well. @jayjun - anything we can do to help? |
Hey @jayjun Sorry to ping about this but is there any way we can help to make it released ? Adding a maintainer that would be ok to do a release on hex.pm could be nice 😉 Hope you're well 😄 |
I have figured something out while attempting to add this PR to a project today (see https://github.com/etalab/transport-site/pull/2524/files). Apparently this PR alone will not be sufficient all the time: in my case (umbrella project, although I do not know if this is the culprit or not), if I attempt to use The reason is that I need to manually call It is like if the On the same project, using the Hex.pm version on a non-M1-Mac works perfectly. I wonder if merging this PR then publishing the package will be enough (maybe it is a I would be happy to see this PR merged and a new version released, so that I can test this specific problem and create a new issue if needed. |
@thbar I think this fix should be enough. The releases of the package to hex.pm contains compiled binaries (I guess there is a call to I'll reiterate but if there's anything I can do to make this land on a proper release on hex.pm don't hesitate to ping me :) |
@achedeuzot I have reached out to @jayjun via various ways, and luckily he is going to respond soon! Maybe we can assemble a small team of maintainers if he agrees to. It would be nice to find a way to fully automate the release process, including binaries for ARM/M1, so that this reduces the burden of the author. Also I can confirm that the |
A couple of notes :
|
Thanks for the pull request @myobie and @thbar for drawing my attention here. So Rambo is published to Hex with compiled binaries for convenience only. It will support any architecture as long as Cargo is found, but I found a bug preventing auto compilation. The fix has the same effect of adding def project do
[
compilers: Mix.compilers() ++ [:rambo]
]
end to your project’s As for bundling an Apple silicon binary, this pull request looks good so I’m going to merge it. But I cannot publish yet because I failed to compile the Windows binary. Tracking with #21, feel free to help. |
macarm
target and filename:rambo
to my list of compilers in my project'smix.exs
. I think this is because it was installed through the:git
way and not the normal hex way. But I'm not sure what is expected here. I imagine once CI runs and it's published to hex it will work auto-magically.