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
I'm building Miri for the first time on Windows according to the instructions here. I've installed rustup-toolchain-install-master, but by default, running './miri toolchain' in order to install the right version of Rust gives me the following error message:
The package requires the Cargo feature called `profile-rustflags`, but that feature is not stabilized in this version of Cargo (1.81.0 (2dbb1af80 2024-08-20)).
Consider trying a newer version of Cargo (this may require the nightly release).
See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-rustflags-option for more information about the status of this feature.
Failed to build miri-script. Is the 'stable' toolchain installed?
The culprit here appears to be this line in miri.bat, which calls "cargo +stable".
Changing it to "+nightly" lets me build and run Miri successfully. The +stable was introduced in #3402, to fix an inability to build miri-script in case of an error, so just removing "+stable" might not be the best way to solve this in general. Is it possible to build miri-script on stable without requiring profile-rustflags?
The text was updated successfully, but these errors were encountered:
Thanks for the report! None of the core devs use Windows or know the batch file syntax, so the miri.bat file tends to go out-of-date. In this case however the fix is hopefully trivial -- do things work if you apply #3864 ?
I'm building Miri for the first time on Windows according to the instructions here. I've installed rustup-toolchain-install-master, but by default, running './miri toolchain' in order to install the right version of Rust gives me the following error message:
The culprit here appears to be this line in miri.bat, which calls "cargo +stable".
miri/miri.bat
Line 8 in 7b422fe
Changing it to "+nightly" lets me build and run Miri successfully. The +stable was introduced in #3402, to fix an inability to build miri-script in case of an error, so just removing "+stable" might not be the best way to solve this in general. Is it possible to build miri-script on stable without requiring profile-rustflags?
The text was updated successfully, but these errors were encountered: