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

Attachment: signature.asc
Description: PGP signature

  • request: make [-j... Andrew via austin-group-l at The Open Group
    • Re: request:... Lawrence Velázquez via austin-group-l at The Open Group
    • Re: request:... Rob Landley via austin-group-l at The Open Group
      • Re: requ... G. Branden Robinson via austin-group-l at The Open Group
      • Re: requ... Andrew via austin-group-l at The Open Group
        • Re: ... Paul Smith via austin-group-l at The Open Group
          • ... Andrew via austin-group-l at The Open Group
            • ... Paul Smith via austin-group-l at The Open Group
              • ... David A. Wheeler via austin-group-l at The Open Group
                • ... Paul Smith via austin-group-l at The Open Group
                • ... Steffen Nurpmeso via austin-group-l at The Open Group
        • Re: ... Rob Landley via austin-group-l at The Open Group
          • ... enh via austin-group-l at The Open Group
          • ... Paul Smith via austin-group-l at The Open Group

Reply via email to