Skip to content
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

Create release binaries for Mac #9

Open
ExcaliburZero opened this issue May 19, 2021 · 1 comment
Open

Create release binaries for Mac #9

ExcaliburZero opened this issue May 19, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@ExcaliburZero
Copy link
Owner

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

@ExcaliburZero ExcaliburZero added the enhancement New feature or request label May 19, 2021
@ExcaliburZero ExcaliburZero modified the milestones: 0.1.1, 0.1.2 May 19, 2021
@ExcaliburZero
Copy link
Owner Author

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.

https://github.com/japaric/rust-cross#i-want-to-build-binaries-for-linux-mac-and-windows-how-do-i-cross-compile-from-linux-to-mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant