-
Notifications
You must be signed in to change notification settings - Fork 82
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
Cross build aarch64-pc-windows-msvc
from x86_64-pc-windows-msvc
without using cargo-xwin
#1644
Comments
Interesting, I didn't realize Windows-to-Windows cross compiling could work this well without a wrapper! We can do some more testing and see if we should promote this to the default, but at a minimum we should make sure we recognize it. |
Sorry, just to add a note. When I back to read the issue, I might being encoding some wrong knowledge. The reason that my first shoot uses Windows-to-Windows method was is just because we were doing that in our old CI script. I have no idea about reason we don't use Linux-to-Windows. If you are interested, you could also check Linux-to-Windows, to make it clearer. |
Also put some information, the cargo.lock. These crates should work pretty, because the software using it has been used on thousands of windows PC. Some heavy crates:
|
Windows-to-Windows cross compiling works pretty well generally, one thing to note is that https://github.com/briansmith/ring/blob/e3b72456313783513e95cd929c3d73d74a33fb5c/build.rs#L550-L553 |
First, thanks for the awesome project. It does save me a lot of time to setup and release targets and the generated announcement looks beautiful. However, I had a hard time to build with cargo-dist, I put some feedback here.
Problem
My first problem is that
cargo-xwin
is too old to build my binaries:https://github.com/Myriad-Dreamin/tinymist/actions/runs/12358673816/job/34489776246
Here is the critical log line:
My Temporary Solution
However, I also find that there is no problem to just run
cargo build --target aarch64-pc-windows-msvc
fromx86_64-pc-windows-msvc
for my binaries. I therefore changedcargo-dist/src/tasks.rs
:Proposed Improvement
It should be great if cargo-dist can provide me some twist to not using
cargo-xwin
if I don't have to. If we can already have a nice way to solve it, please let me know.The text was updated successfully, but these errors were encountered: