Problem you are trying to solve
macOS has the capability to transparently run x86 binaries on Aarch64 using Rosetta. This allows things like rustup default stable-x86_64-apple-darwin --force-non-host to work.
Unfortunately, it is also a lot slower, and it can be hard to know that something is wrong.
Rustup already helps a lot with this with the --force-non-host flag, and I'm unsure of the exact reasons why people are still hitting this, but anecdotally, I've helped people both in-person and online run rustup default stable-aarch64-apple-darwin and resolve a lot of problems that way.
It might happen if they've migrated their .rustup folder from an Intel Macbook? Or if they configured their setup before the stuff in #3438 / #3068 / #3972 was implemented?
Solution you'd like
It would be nice if Rustup could warn when the default toolchain is set to an x86_64 variant on a Aarch64 machine.
I am unsure exactly when it would make sense for such a warning to trigger, but probably when running rustup default, and at the end of rustup update.
And maybe rustup show, rustup check and rustup toolchain list?
Problem you are trying to solve
macOS has the capability to transparently run x86 binaries on Aarch64 using Rosetta. This allows things like
rustup default stable-x86_64-apple-darwin --force-non-hostto work.Unfortunately, it is also a lot slower, and it can be hard to know that something is wrong.
Rustup already helps a lot with this with the
--force-non-hostflag, and I'm unsure of the exact reasons why people are still hitting this, but anecdotally, I've helped people both in-person and online runrustup default stable-aarch64-apple-darwinand resolve a lot of problems that way.It might happen if they've migrated their
.rustupfolder from an Intel Macbook? Or if they configured their setup before the stuff in #3438 / #3068 / #3972 was implemented?Solution you'd like
It would be nice if Rustup could warn when the default toolchain is set to an x86_64 variant on a Aarch64 machine.
I am unsure exactly when it would make sense for such a warning to trigger, but probably when running
rustup default, and at the end ofrustup update.And maybe
rustup show,rustup checkandrustup toolchain list?