Skip to content

Building PhASAR with Distcc

Philipp Schubert edited this page Feb 11, 2020 · 1 revision

PhASAR supports distributed compiles using distcc https://distcc.github.io/. An exemplary command-line for generating a ninja build file that supports distcc builds is shown in the following:

$ mkdir build
$ cd build
$ CC=clang CXX=clang++ cmake -G "Ninja" -DCMAKE_C_COMPILER_LAUNCHER=distcc -DCMAKE_CXX_COMPILER_LAUNCHER=distcc -DPHASAR_BUILD_UNITTESTS=on ..
$ ninja -j200 # or whatever your compile machine is capable of

When using distcc we highly recommend to use the ninja https://github.com/ninja-build/ninja build system as it schedules the compile jobs much more effectively.

Clone this wiki locally