[cfe-commits] [PATCH] More better win32 include path init

John Thompson john.thompson.jtsoftware at gmail.com
Tue Nov 17 13:21:02 PST 2009


It turns out that in Visual Studio 2008 (9.0), the Windows platform SDK is
no longer embedded in the Visual Studio installation directory, but in a
sister directory, also specified in the registry.  This patch fixes that,
and also does away with the hard-coded paths for Windows, and the funky
choice between VC80 and vc90.  Instead, it searches for the highest
versioned registry keys, which hopefully will still work when the next
versions of VS come out.
For cross-compiling with respect to the removal of the hard-coded paths, if
you mimic the mimic the VC??COMNTOOLS environment variables, you can still
have some means to use a copy of the Visual Studio includes.  Otherwise it
will search /usr/local/include and /usr/include.

-John

-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091117/c439572d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32pathfix.patch
Type: application/octet-stream
Size: 8227 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091117/c439572d/attachment.obj>


More information about the cfe-commits mailing list