To cross-compile or not to cross-compile #11752
Replies: 3 comments 1 reply
-
The easiest is to use a pre-made template that contains CI scripts to cross-compile for you on different platform. It even supports WASM builds and push all releases target to an itch.io project. |
Beta Was this translation helpful? Give feedback.
-
If you can cross-compile, you should cross-compile. Making all artifacts in one place is less prone to errors, so there's no reason not to do it. Only question is whether you can cross-compile. Bevy had some issues with blake3 crate previously, but those are probably solved. If you have other FFI deps, you might have issues (as I do with libcurl). |
Beta Was this translation helpful? Give feedback.
-
AFAIK there is no runtime performance difference between native and cross-compiled binaries. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm aiming to target the 3 desktop platforms (Windows, Mac, Linux) for a bevy project. I know that Rust can cross-compile from Linux to all these platforms, but should I?
Is there any performance impact to doing so? Or maybe some other gotchas compared to compiling on the native machine?
Would love to hear your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions