Building LLVM/clang with LLVM/clang and LTO using cmake

On my computer it is pain in the a** to build LLVM/clang with LLVM LTO on using cmake. I have to add -k to the make command and run ranlib from time to time. Anyway to fix this?

OS: Ubuntu 13.04 amd64
LLVM Version: LLVM 3.4 svn HEAD.

By the way, the resulting binary built with flags -Ofast -flto runs blazingly fast. I can compile entire GNUstep libraries in under a minute without parallelism.

ChanMaxthon <xcvista@me.com> writes:

On my computer it is pain in the a** to build LLVM/clang with LLVM LTO
on using cmake. I have to add -k to the make command and run ranlib
from time to time. Anyway to fix this?

To fix what?

Please file a bug report with all relevant info, starting with a
complete description of the problem :wink:

In a nutshell, To automatically ranlib when building LLVM with LLVM LTO on on Linux.