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

Support getting Windows SDK from the environment #646

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

nico-abram
Copy link
Contributor

Should fix #625

This uses the "WindowsSdkDir" and "WindowsSDKVersion" environment variables set by vcvars.

I only ran some simple tests, checked that it worked when running under a shell configured with vcvars and under one without (And that it correctly found the env var and paths), and I also manually tested by setting the two env vars by hand to use a different SDK version and that also worked fine.

@alexcrichton
Copy link
Member

Thanks!

@alexcrichton alexcrichton merged commit 030baed into rust-lang:main Jan 4, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 1, 2023
…ark-Simulacrum

aarch64-msvc: remove CI hack for bad Windows SDK version

This removes hack which manually replaced windows sdk version, as it looks like useless now, as CI uses newer version: https://github.com/rust-lang-ci/rust/actions/runs/5596259246/jobs/10233070602#step:24:929
`C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_io.h` (look at version)

related rust-lang#88796

It's nice to have some way to assert bad version, but i don't see anything except checking env rust-lang/cc-rs#646
github-actions bot pushed a commit to rust-lang/miri that referenced this pull request Aug 2, 2023
…acrum

aarch64-msvc: remove CI hack for bad Windows SDK version

This removes hack which manually replaced windows sdk version, as it looks like useless now, as CI uses newer version: https://github.com/rust-lang-ci/rust/actions/runs/5596259246/jobs/10233070602#step:24:929
`C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_io.h` (look at version)

related rust-lang/rust#88796

It's nice to have some way to assert bad version, but i don't see anything except checking env rust-lang/cc-rs#646
lnicola pushed a commit to lnicola/rust-analyzer that referenced this pull request Apr 7, 2024
…acrum

aarch64-msvc: remove CI hack for bad Windows SDK version

This removes hack which manually replaced windows sdk version, as it looks like useless now, as CI uses newer version: https://github.com/rust-lang-ci/rust/actions/runs/5596259246/jobs/10233070602#step:24:929
`C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_io.h` (look at version)

related rust-lang/rust#88796

It's nice to have some way to assert bad version, but i don't see anything except checking env rust-lang/cc-rs#646
RalfJung pushed a commit to RalfJung/rust-analyzer that referenced this pull request Apr 27, 2024
…acrum

aarch64-msvc: remove CI hack for bad Windows SDK version

This removes hack which manually replaced windows sdk version, as it looks like useless now, as CI uses newer version: https://github.com/rust-lang-ci/rust/actions/runs/5596259246/jobs/10233070602#step:24:929
`C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_io.h` (look at version)

related rust-lang/rust#88796

It's nice to have some way to assert bad version, but i don't see anything except checking env rust-lang/cc-rs#646
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.

Support getting Windows SDK from the environment
2 participants