Skip to content
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

Probe for ARM64 MSBuild #605

Merged
merged 1 commit into from
Jun 1, 2021
Merged

Probe for ARM64 MSBuild #605

merged 1 commit into from
Jun 1, 2021

Conversation

Alovchin91
Copy link
Contributor

I found an interesting corner case. I've been installing a x86/x64 MSVC toolchain alongside an ARM64 toolchain, and I never had any problem detecting Visual Studio version. But when I uninstalled the x86/x64 MSVC toolchain, suddenly my test app stopped detecting Visual Studio.

I realized that cc-rs probes for MSBuild using different triples. This list of triples does include both i686 and x86_64, but it doesn't include aarch64. So I've added it to the list.

Additionally, I also now set MSBuild Platform property to ARM64 for aarch64 targets. I'm not 100% sure what does it affect, but looking at x86_64 I thought it might be a good idea.

Set MSBuild Platform property to ARM64 for aarch64 targets
@alexcrichton
Copy link
Member

This all seems reasonable to me, thanks!

@alexcrichton alexcrichton merged commit 26cdfb7 into rust-lang:master Jun 1, 2021
@Alovchin91 Alovchin91 deleted the alovchin91/win-arm64-once-more branch June 1, 2021 16:27
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jul 13, 2021
…richton

Upgrade `cc` crate to 1.0.69

This pulls another fix for rust-lang#83043, i.e., rust-lang/cc-rs#605.
r? `@alexcrichton`
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jul 14, 2021
…richton

Upgrade `cc` crate to 1.0.69

This pulls another fix for rust-lang#83043, i.e., rust-lang/cc-rs#605.
r? ``@alexcrichton``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants