Skip to content

Instantly share code, notes, and snippets.

@gyk
Created June 27, 2024 09:49
Show Gist options
  • Save gyk/72349959055e128b984ef80cfaffa8d7 to your computer and use it in GitHub Desktop.
Save gyk/72349959055e128b984ef80cfaffa8d7 to your computer and use it in GitHub Desktop.

Attempted to install the Win7 target (rust-lang/rust#118150) but failed:

> rustup target add x86_64-win7-windows-msvc
error: toolchain 'stable-x86_64-pc-windows-msvc' does not support target 'x86_64-win7-windows-msvc'
note: you can see a list of supported targets with `rustc --print=target-list`
note: if you are adding support for a new target to rustc itself, see https://rustc-dev-guide.rust-lang.org/building/new-target.html

This is due to currently *-win7-windows-msvc is still Tier 3 and cannot be used in Rustup. For now, just install an old compiler:

 rustup install 1.77.2

and then either run rustup override set 1.77.2-x86_64-pc-windows-msvc or put rust-toolchain.toml at the project root:

[toolchain]
channel = "1.77.2-x86_64-pc-windows-msvc"
@gyk
Copy link
Author

gyk commented Jun 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment