Skip to content

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

Closed
nico opened this issue Jan 18, 2012 · 10 comments
Closed

Improve windows sdk lookup logic in WindowsToolChain.cc #12164

nico opened this issue Jan 18, 2012 · 10 comments
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema"

Comments

@nico
Copy link
Contributor

nico commented Jan 18, 2012

Bugzilla Link 11792
Resolution FIXED
Resolved on Jul 26, 2014 14:22
Version unspecified
OS Windows NT
Blocks llvm/llvm-bugzilla-archive#13707
Attachments patch sketch
CC @tritao,@timurrrr

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.

@tritao
Copy link
Mannequin

tritao mannequin commented May 11, 2012

Can you submit the finished patch to the list?

@llvmbot
Copy link
Member

llvmbot commented May 13, 2012

r152589 has introduced %INCLUDE%.
At least, "Command prompt for Visual Studio" provides sdkdir in %INCLUDE%.

Shall we detect sdk dirs anyways?
Does CL.EXE seek system-known sdk dirs?

@tritao
Copy link
Mannequin

tritao mannequin commented Jun 16, 2012

I think we should still detect the SDK directories, and default on the latest toolset if the environment variables are not found.

@tritao
Copy link
Mannequin

tritao mannequin commented Jun 23, 2012

I started working a bit on improving the Windows driver stuff. Attached is a work-in-progress patch that:

  • Refactors the registry lookup code
  • Adds the improved SDK lookup patch on this bug
  • Adds MS C++ standard library support
  • Enables MS ABI automatically when targetting the MS C++ libs
  • Also temporarily disables RTTI by default since it does not work yet

@tritao
Copy link
Mannequin

tritao mannequin commented Jun 23, 2012

MS driver improvements

@nico
Copy link
Contributor Author

nico commented Jun 23, 2012

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.

@nico
Copy link
Contributor Author

nico commented Aug 1, 2012

r160702 does not have this problem yet.

@nico
Copy link
Contributor Author

nico commented Aug 1, 2012

sorry, comment 7 was for a different bug

@nico
Copy link
Contributor Author

nico commented Jul 26, 2014

Looks like Hans landed something like my patch sketch in r192374.

@tritao
Copy link
Mannequin

tritao mannequin commented Nov 26, 2021

mentioned in issue llvm/llvm-bugzilla-archive#13707

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema"
Projects
None yet
Development

No branches or pull requests

2 participants