Using LLVM to build large projects

Hi @ll,

I am using LLVM to build MySQL. It’s OK when I use llvmc/llvm-gcc/llvm-g++ instead of gcc.
However, such processing disabled interprocedural analysis that has to combine all bitcode files.

My question is how to build MySQL with interprocedural analysis? I really don’t like editing all Makefiles one by one. Is there any convenient approach?

Thank you.

Yao Shi

Hi @ll,

I am using LLVM to build MySQL. It's OK when I use llvmc/llvm-gcc/llvm-g++
instead of gcc.
However, such processing disabled interprocedural analysis that has to
combine all bitcode files.

My question is how to build MySQL with interprocedural analysis? I really
don't like editing all Makefiles one by one. Is there any convenient
approach?

On OS X I think you can just use -O4. On Linux you can use the gold
linker with a plugin to accept llvm IL:

http://llvm.org/docs/GoldPlugin.html

Thank you.

Yao Shi

Cheers,