Compiling with g++ using multiple cores

后端 未结 8 2377
猫巷女王i
猫巷女王i 2020-11-29 15:47

Quick question: what is the compiler flag to allow g++ to spawn multiple instances of itself in order to compile large projects quicker (for example 4 source files at a time

8条回答
  •  盖世英雄少女心
    2020-11-29 16:05

    distcc can also be used to distribute compiles not only on the current machine, but also on other machines in a farm that have distcc installed.

提交回复
热议问题