How can I make the b2 builder to default to -jN?

520 views Asked by At

I want to do boost builds in parallel by default, e.g. instead of ./b2 -j4 I want to just invoke ./b2 and have it use -j4, or -jN for some other relevant N, itself.

Can I do this? I was thinking maybe I could put in tools/build/src/user-config.jam somehow, but I'm not really well-versed enough in how that works.

Bonus points if I don't have to enter a value manually but have it determined by something like nproc, dynamically before building.

0

There are 0 answers