Hi,
I built clang latest trunk + I did some minor change to allow debugging - with the my build you can compile and debug a C program.
For C++: Its not usable.
- Exceptions are not supported (you need to compile your code with
-fno-exceptions)
- You need to explicitly set -lstd++ in the linker
- After you successfully link, your
program will crash ( in debug and release mode with no optimizations ) with non helpful backtrace. Note that the crash happens with or without my change
To summarize:
- Is usable for C
- Don't bother with it for C++ / Windows
Linux is another story:
- Works like a charm (I even got a separate codelite build which compiles with clang)
- Its x2 faster than g++ on linux (for comparison, compiling codelite ~1200 sources with PCH enabled takes about 3 mins on my 8 core machine with g++ and ~1.3 min with clang++)
- A drop in replacement for g++/gcc (just set CXX=clang++ / CC=clang and you are done)
Eran