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
xargo build --target x86_64-pc-windows-gnu --release
error: couldn't copy /home/drdinosaur/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/rsbegin.o to /home/drdinosaur/.xargo/lib/rustlib/x86_64-pc-windows-gnu/lib/rsbegin.o
caused by: No such file or directory (os error 2)
note: run with `RUST_BACKTRACE=1` for a backtrace
I am attempting to compile to Windows from Linux. I'm not sure what the issue is from that. I'm still, new to Rust, I'm just trying to reduce my binary size through this method. Thanks.
The text was updated successfully, but these errors were encountered:
Building for Windows needs some extra object files that it seems you do not have. You could try rustup target add x86_64-pc-windows-gnu.
But also... maybe try using std-aware cargo instead? xargo is not developed any more, just some (not all) of the existing use-cases are kept working on a best-effort basis.
I am following this guide: https://github.com/johnthagen/min-sized-rust#optimize-libstd-with-xargo
I ran the following commands:
When I run this command, I get an error.
I am attempting to compile to Windows from Linux. I'm not sure what the issue is from that. I'm still, new to Rust, I'm just trying to reduce my binary size through this method. Thanks.
The text was updated successfully, but these errors were encountered: