So, although I should have known better, I wasted the day trying to get Clang-SVN under Windows working. Turned out it is the typical Unix-like open source shit that you expect. Why does everything that you get for free suck so much?
Install prerequisites, configure, and make. Yeah right. Python is a prerequisite for running the test suite. Of course you don't want to run the test suite, but make will fail with "python version > 2.5 required" if you don't have Python installed. So you install Python version 3.3, and guess what, now make fails with "invalid syntax".
Searching the web for the exact error gives a solution: "Yeah, print is a function in python 3.x now, you will need the latest 2.x version".
Great. Fuck you.
Using vanilla MinGW or MinGW-TDM, configure works fine, but the build fails after 3-4 seconds because off_t is not defined (which is, of course, total bollocks).
So you install Python 2.7 and a MinGW-w64 based compiler, and behold, it configures and builds.
In fact, it builds every darn architecture that LLVM supports, which only takes like 2 hours. So you reconfigure with --enable-targets. No matter what you choose, you get a "cannot determine triplet" error. Fuck you, again.
So you reconfigure again, and rebuild all that shit. The build process has no way of running without the test suite. Anything but "all" fails, and "all" runs the test suite. Further, make hangs when you call it with -j, great. Single-threaded builds in 2014. Fuck you, again.
Surprisingly, it indeed -- finally -- generates a working 460MB compiler. Except there are no C++ or C++11 headers.
So you reconfigure for C++11 support (which you have to specify explicitly!), and guess what. It fails because i386 is not supported under 10.4 and under OSX. The fuck, what?
I'm building a Windows compiler under Windows, using a Windows compiler, targetting Windows. What do I care if i386 is supported under OSX?
Interesting. Looking at the SVN log, I find an entry from earlier today "Try to unbreak MinGW build". So apparently this is a known problem. Well, I'll give it another try next weekend.