Check this SO thread:
http://stackoverflow.com/questions/7031126/switching-between-gcc-and-clang-llvm-using-cmake

On 12/18/2012 12:32 PM, Hassan, Ahmad wrote:

Hi,

 

I want to ask if someone has tried compiling MonetDB with Clang/LLVM compiler? I intend to compile MonetDB with LLVM for analysing the query execution at runtime.

 

Does someone know the changes in the build process required for building Monetdb with clang/llvm?

 

Thanks.

 

Cheers,

Ahmad