Re: [PATCH] src/main.c: Add -J to detect number of job slots based on nproc.

2024-04-11 Thread Henrik Carlqvist
On Fri, 12 Apr 2024 02:13:36 +0100 Matt Staveley-Taylor wrote: > Browsing the mailing list I can see that the behaviour of -j with no > arguments has been discussed a few times. Given it would affect > backwards compatability to change how -j works, introducing a new > flag seems appropriate. Yes

[PATCH] src/main.c: Add -J to detect number of job slots based on nproc.

2024-04-11 Thread Matt Staveley-Taylor
Add the -J/--detect-job-slots flag as an shorthand equivalent for -j$(nproc). The help message is deliberately left ambiguous so that we could change it to nproc + 1 in future, if desired. Signed-off-by: Matt Staveley-Taylor --- Browsing the mailing list I can see that the behaviour of -j with no