-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Improve windows sdk lookup logic in WindowsToolChain.cc #12164
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
Comments
Can you submit the finished patch to the list? |
r152589 has introduced %INCLUDE%. Shall we detect sdk dirs anyways? |
I think we should still detect the SDK directories, and default on the latest toolset if the environment variables are not found. |
I started working a bit on improving the Windows driver stuff. Attached is a work-in-progress patch that:
|
I feel that it would be useful if the registry code could be tested somehow (maybe by having a test binary that creates an fake memory from yaml files or some such), before it's refactored. |
r160702 does not have this problem yet. |
sorry, comment 7 was for a different bug |
Looks like Hans landed something like my patch sketch in r192374. |
mentioned in issue llvm/llvm-bugzilla-archive#13707 |
Extended Description
I somehow ended up with a registry that looks like
.../Microsoft SDKs/Windows/
v7.0A/
InstallationFolder
(tons of subfolders
v7.1
(no values)
Just WinSDKIntelliSysRefAssist
So for some reason I don't have a real v7.1 SDK. The current toolchain looks for the highest version first, and after that for "InstallationFolder" in there.
Instead, it should pick the highest version with "InstallationFolder" present. A rough sketch of a patch is attached.
The text was updated successfully, but these errors were encountered: