I am maintaining a pre-built version of Clang for Windows, fetched from the head of SVN and built with Visual Studio – so no MinGW dependencies. Being fetched from the head means it isn’t ‘stable’, but it does let you muck about with the latest Clang features without fetching the source yourself – via ClangVSx, perhaps! – as well as experiment with any other extras I get around to adding into the distribution.
I track and update to the official Clang and LLVM source code via GitHub, as well as checking in any of my modifications.
OS Support: Both the October 2012 and Christmas 2012 drops are built using Visual Studio 2012 SP1 (Please snag the X86 redistributables from Microsoft to use it if you don’t have VS2012 installed) and they will not work on Windows XP. Otherwise, download the Visual Studio 2010 redistributables if you don’t have it installed.
ClangVSX Support: From the Christmas 2012 drop, you are downloading Clang 3.3; upgrade your ClangVSx installs to 0.4.5.
Clang isn’t completely ready for the terrors within the Windows Platform SDK but the latest version is at least at the stage where it can handle
windows.h without detonating on the tarmac. It will still have occasional problems with the MS C++ Standard Library too. ClangVSx automatically fixes one other issue, which you may want to use if you’re running things from the command line:
- Disabling use of _cxaa_atexit on Win32 builds; there is now code to properly use the ‘atexit’ approach (explained here, somewhat)
Other Stuff Bundled:
Drops since March 2013 also include the associated clang-c includes and export library for use with the precompiled
The March 2013 release has added the include-what-you-use module back in, a Google project built on Clang that analyses and advises on the use of includes in C++ projects. To use it, just target the clang-IWYU.exe executable.
Download the most recent release (7zip, approx 8MB) here. This is built from source synced on 10th March 2013.
clang3.3_jan2013.7z – synced 5th January 2013
clang3.3_xmas2012.7z – synced 4th December 2012 (no XP support)
clang3.2_oct2012.7z – synced 21st October 2012 (no XP support)
clang3.2_sept2012.7z – synced 2nd September 2012
clang3.2_aug2012.7z – synced 9th August 2012
clang3.2_may2012.7z – synced 12th May 2012