clang config

Milian Wolff mail at
Thu Dec 12 11:09:54 GMT 2013

On Wednesday 11 December 2013 17:59:19 Freddy Martinez Garcia wrote:
> Hi
> I need to use clang in KDevelop. How can I confogure KDevelop to use clang
> compiler and not gcc ??

This has nothing to do with KDevelop, as KDevelop does not call any compiler - 
it is not a build toolchain.

What you are asking is rather how to configure your build toolchain, but you 
do not tell us which one you use: CMake? QMake? Hand-written make files? ...?

If it's CMake then you want to define CC=clang CXX=clang++ before running 
CMake. Alternatively, try to change the compiler from within KDevelop's CMake 
cache edit, which you find in the project settings (make sure to show advanced 

Milian Wolff
mail at

More information about the KDevelop mailing list