[LLVMbugs] [Bug 17033] New: WindowsToolChain failed to find VS installation when compiled as 64-bit code
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 29 02:25:27 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17033
Bug ID: 17033
Summary: WindowsToolChain failed to find VS installation when
compiled as 64-bit code
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: mingxiang.xu at autodesk.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
WindowsToolChain.cpp queries registry for VS installation. When compiled as
32-bit code, it looks at HKEY_LOCAL_MACHINE\SOTWARE\Microsoft\VisualStudio.
This works well.
If WindowsToolChain.cpp is compiled as 64-bit code, it fails to find VS
installation because the registry is actually stored in
HKEY_LOCAL_MACHINE\SOTWARE\Wow6432Node\Microsoft\VisualStudio. Visual Studio is
a 32-bit appliation.
It would be helpful to add KEY_WOW64_32KEY flag to RegOpenKeyEx or check
IsWow64Process() so that it can find the correct registry key in Wow6432Node.
Not for this bug, it would be nice to add VS110COMNTOOLS environemnt var check
as a fallback.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130829/70578ec4/attachment.html>
More information about the llvm-bugs
mailing list