Compiling LLVM projects with Icecream and CCache


I want to utilize multiple hosts for compiling an LLVM subproject (lldb).

To cache compilation results I want to use ccache and for distributed compilation I want to use icecream (not distcc).

What are the CMake flags and environment variables I need to touch in order to get this?


Use cmake -DCMAKE_CXX_COMPILER_LAUNCHER=/path/to/wrapper to use whatever wrapper you like. It could be your own shell script that combines ccache and icecc, or just icecc. I use it with gomacc: