<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Clang/LLVM<BR>
<BR>
I am using Clang now for some time successfully with some of our internal projects.<BR>
I always use cmake as the makefile generator (build system).<BR>
I always use clang to build clang ... :) ... before I install it I do the "make clang-test" obviously ...<BR>
<BR>
The command I run is as follows:<BR>
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_ENABLE_ASSERTIONS=OFF -DLLVM_BUILD_TESTS=ON -DLLVM_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release -DREQUIRES_RTTI=1 -G "Unix Makefiles" ..<BR>
<BR>
It is currently working very nice, but for one small little annoying problem, this is most likely a noob problem:<BR>
I see when you do a ".configure"  you can actually do a "make update" ... and then only the changes gets compiled and iterated through.<BR>
But when I do the SVN update on my source, cmake complains that I have changed some variables (even if I used the same instruction) and then when I run "make -j4" in the build directory it starts to compile from scratch everything (my argument is that if you guys added files, cmake needs to be informed of the new files ... right?) ... not a "train-smash" though ... at the pace that clang/llvm is moving I would like to have the latest without source builds, and if possible only build and link the changes into the already compiled objects ...<BR>
<BR>
PS. Clang totally rocks ... here is hoping that emacs and vim aren't the the two only editors that will be using its "other" features ...<BR>
<BR>
Best regards,<BR>
<BR>
Dawie<BR>
<BR>
<BR>
</BODY>
</HTML>