Your question is not about threads, but processes (jobs) executed by make.
The simple, way to set this, when make is used from the console is adding:
alias make="/usr/bin/make -j 8"
to your .profile
file.
You can also use setenv MAKEFLAGS '-j 8'
, but MAKEFLAGS
can ignore this parameter in some scenarios, because keeping desired number of processes requires communicating with recursive make
calls. Happily this method works with current versions of GNU Make.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…