regarding reducing the clang compilation time

Hi,
I am frequently compiling the clang-2.9.
Is there any way to disable unwanted components so compilation time can be reduced?
Can i disable compilation for clang-examples, and specially c-index tool?
c-index is dependent on many libraries so even minor change in any one file makes c-index to recompile and it takes too long.
I am using only x86 architecture, is there any way to disable compilation for other architecture support file and hence i can reduce compilation time?

jignesh vasoya <jigneshvasoya@gmail.com>
writes:

I am frequently compiling the clang-2.9.
Is there any way to disable unwanted components so compilation time can be
reduced?

Yes, if you are you using the cmake build (dunno about the traditional build)

Can i disable compilation for clang-examples,

CLANG_BUILD_EXAMPLES

and specially c-index tool?

No. It could be implemented if a good rationale is provided.

c-index is dependent on many libraries so even minor change in any one file
makes c-index to recompile and it takes too long.

How much? It takes a few seconds here. What is your platform and machine
specs?

I am using only x86 architecture, is there any way to disable compilation
for other architecture support file and hence i can reduce compilation time?

LLVM_TARGETS_TO_BUILD

For more info see http://www.llvm.org/CMake.html