-
Notifications
You must be signed in to change notification settings - Fork 83
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
Support cross compiling #79
Comments
Hey @expipiplus1 , can you clarify what you mean by "cross compiling"? I've meant to add wasm and musl builds to naersk, just haven't found the time yet. I'll also need to write a guide on how I do it at $WORK. Do you mean more cross compilation targets? |
Just running into this now. Wanting to do a |
Let me get started on this, I have the code lying around, just need to integrate it. First I want to extend the test suite to run on multiple nixpkgs versions, otherwise it's going to be hell to debug. |
Thanks so much! I gave it a shot, but it was a little much for my novice Nix skills. If you need any help testing let me know, I can at least be a beta tester. |
Thanks! I've created a bunch of tickets: https://github.com/nmattia/naersk/issues?q=+is%3Aissue+label%3Amusl+ Last night I added a definition for |
hooray, I've just bumped into this as well. Looking at #98, and specifically at https://github.com/nmattia/naersk/pull/98/files#diff-6938ea327f87ba609b4fafc30775f3e9R38-R39 I'm left to believe that cross compilation should be as easy as setting a different |
There's now an example for building against musl. |
Thank you! If only I could remember what I initially needed this for! |
I guess this would involve using
rustc.nativeDrv
instead ofrustc
and changing some of the info passed tocargo
. I'm no rust expert and wasn't able to get this working in a few minutes of trying.The text was updated successfully, but these errors were encountered: