[LLVMdev] VS2005 compatibility

Francois Pichet pichet2000 at gmail.com
Tue Nov 8 05:30:46 PST 2011


On Tue, Nov 8, 2011 at 8:02 AM, Don Williamson <don.williamson at yahoo.com> wrote:
>
>
> OK, it's not that bad - it's even better than before :)
>
> The main issue is RWMutex.inc and the use of PSRWLOCK. This requires _WIN32_WINNT to be >= 0x0600, which is not true for VS2005 SP1.
>
> Rather than #define _WIN32_WINNT 0x0600 (the file notes that this should build on all Win32 variants), extending the copy/paste of winbase.h to this works fine:
>
> #if defined(__MINGW32__) || _WIN32_WINNT < 0x0600
>
> I'm still getting random crashes running llvm-tblgen.exe which I think is a known issue (I only need clang libs to build successfully so this isn't fatal for me).
>

I am not aware of anyone who regularly build LLVM/clang with MSVC 2005
so you might run into some problems.

I suggest you update to MSVC 2010 (or 2008 will do). There is a
buildbot for MSVC 2010 so issues are generally fixed quite fast. Also
LLVM compile just fine if you use the free MSVC Express edition so
having to pay for a license should not be problem.



More information about the llvm-dev mailing list