[cfe-dev] regarding reducing the clang compilation time

Óscar Fuentes ofv at wanadoo.es
Tue Jan 25 10:09:39 PST 2011

jignesh vasoya <jigneshvasoya at gmail.com>

> 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,


> 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

> 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?


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

More information about the cfe-dev mailing list