<!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>
Oscar,<BR>
<BR>
Thanks for the info, but I believe I have found the correct answer.<BR>
According to CMake in <A HREF="http://www.cmake.org/Wiki/CMake_Useful_Variables,">http://www.cmake.org/Wiki/CMake_Useful_Variables,</A> they indicated that should only set the compiler type once (-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++), the subsequent calls to cmake should not have those strings in as Cmake will delete your whole cache and compile everything from scratch ... thus if you want to compile Clang with Clang ... :) ... then you only configure it once with the different compiler settings ... the subsequent calls should exclude those settings as it handles the Cmake cache as a reference versus the "changes" that SVN did ... now my builds are far faster ... and I can enjoy the luxury of having a bleeding edge Clang ...<BR>
<BR>
Best regards Clang-devs ...<BR>
<BR>
Enjoy ...<BR>
<BR>
Dawie<BR>
<BR>
According to cmake<BR>
----Original Message-----<BR>
<B>From</B>: Dawie Joubert <<A HREF="mailto:Dawie%20Joubert%20%3cjoubertdj@gmail.com%3e">joubertdj@gmail.com</A>><BR>
<B>Reply-to</B>: joubertdj@gmail.com<BR>
<B>To</B>: <A HREF="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</A><BR>
<B>Subject</B>: Is it possible to update cmake build without running cmake again? (Noob clang warning)<BR>
<B>Date</B>: Tue, 18 Jan 2011 08:16:23 +0200<BR>
<BR>
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>