At 2024-10-29T13:13:01-0500, Rob Landley via austin-group-l at The Open Group wrote: > On 10/22/24 00:42, Andrew via austin-group-l at The Open Group wrote: > > Both GNU and BSD make support parallelism with -j flags. > > > > Can POSIX make adopt a -j flag
It already has, as of POSIX 2024. > > to indicate the maximum number of concurrent jobs, default 4? > > > > This can help to accelerate a lot of existing makefiles. [...] > Why not autodetect? I use -j $(nproc) a lot, although on BSD/mac it's > "sysctl -n hw.ncpu" instead. > > Arbitrary limit seems a bit silly when the ability to probe exists. > (The linux one even responds to taskset by default, dunno about > bsd-land...) That's what's been standardized. Implementations that wish to size the pool of job tokens automatically are given room to do so. See https://austingroupbugs.net/view.php?id=1436 where this was discussed and worked out in detail. Regards, Branden
signature.asc
Description: PGP signature
