Skip to content

There may be a bug in the msvc detection part of rustc #86835

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

Closed
FirTech opened this issue Jul 3, 2021 · 3 comments
Closed

There may be a bug in the msvc detection part of rustc #86835

FirTech opened this issue Jul 3, 2021 · 3 comments
Labels
C-bug Category: This is a bug.

Comments

@FirTech
Copy link

FirTech commented Jul 3, 2021

I created a new project using cargo, and then created a build.rs file with only an empty main function.
Then I execute \VC\Auxiliary\Build\vcvarsall.bat x86 and then execute cargo build --release --target=i686-pc-windows-msvc and it will report an error: "The library computer type "x86" conflicts with the target computer type "x64" "
I think there may be a bug in the msvc detection part of Rustc.

@FirTech FirTech added the C-bug Category: This is a bug. label Jul 3, 2021
@ChrisDenton
Copy link
Member

ChrisDenton commented Jul 3, 2021

Thanks for the report! Could you try with the nightly compiler in case this is fixed in the next version? If you're using rustup you can use nightly like this:

rustup install nightly
cargo +nightly build --release --target=i686-pc-windows-msvc

@FirTech
Copy link
Author

FirTech commented Jul 3, 2021

ok, I tried the nightly version, it can be built normally, and I look forward to stabilizing this function as soon as possible

@JohnTitor
Copy link
Member

This is fixed by #85649 and the next stable version (1.54) should have that fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants