You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Philipp Schubert edited this page Feb 11, 2020
·
1 revision
PhASAR supports distributed compiles using distcchttps://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 ninjahttps://github.com/ninja-build/ninja build system as it schedules the compile jobs much more effectively.