-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fast compile generics setting causes build fail on windows #5505
Comments
The full fast compile configuration only works with nightly rustc. |
I see... I've checked the version of rustc, it turns out that, after I do |
What does |
I've tried both in default and overrive
But the rustc version dosen't change.
By the way I set custom env var CARGO_HOME and RUST_HOME to download rust in D:/ . Maybe I should re-install rust.. |
Default host: x86_64-pc-windows-msvc
rustup home: D:\rust\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc (default)
active toolchain
----------------
nightly-x86_64-pc-windows-msvc (overridden by 'D:\code_project\bevy_playground\rust-toolchain.toml')
rustc 1.64.0-nightly (0f4bcadb4 2022-07-30)
This is |
I checked the path of rustc by running
I realize that it might because that shell can't recognize the path of rustc because I checked the existence of rustc.exe in the folder of nightly version. |
So I solved this problem in a cheat way: I changed the folder's name from nightly-x86_64-pc-windows-msvc into stable-x86_64-pc-windows-msvc, and the original one is changed into stable-x86_64-pc-windows-msvc-backup. Also I changed the rust-toolchain.toml's channel from nightly into stable. Now the generics feature can work properly, but this methods may have some potential side-effect so I'm still in search of a better way to solve this issue. |
with an override or a default, |
Simply uninstall stable version also solve this issue. But this #2921 still occurs since I'm using Win11... So I guess I'm just going to clost this generics feature. |
Bevy version
The main version with commit code: 83a9e16
Relevant system information
Windows, rust nightly version installed.
What you did
Do exactly as Enable fast compile
What went wrong
I got error message when
cargo run --features bevy/dynamic
:Additional information
After I disable the config in ${workspaceFolder}/.cargo/config.toml:
The compile process runs properly. I've checked the rust-lld.exe is in .rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\bin\rust-lld.exe, so it might caused by rustflags.
The text was updated successfully, but these errors were encountered: