You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to build binaries for Linux, Mac and Windows. How do I cross compile from Linux to Mac?
Short answer: You don't.
It's hard to find a cross C toolchain (and cross compiled C libraries) between different OSes (except perhaps from Linux to Windows). A much simpler and less error prone way is to build natively for these targets because they are tier 1 platforms. You may not have direct access to all these OSes but that's not a problem because you can use CI services like Travis CI and AppVeyor. Check my rust-everywhere project for instructions on how to do that.
Currently I generate release binaries for Linux and Windows since I develop on a Linux machine and cross-compiling Rust code for Windows is easy.
We should generate binaries for Mac as well, so that the vscode extension can leverage the language server on Mac.
Related links
The text was updated successfully, but these errors were encountered: