bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #56701] Do not allow -j without a number


From: David Boyce
Subject: Re: [bug #56701] Do not allow -j without a number
Date: Mon, 26 Aug 2019 10:32:36 -0700

My vote is to leave -j alone. Everyone knows it shouldn't be used that way in production, especially on shared host, but I've been known to use -j alone when testing out the parallel-safety of a makefile or in various other ad-hoc test scenarios. I could even imagine it being used deliberately as a stress test.

What might make more sense to me would be introducing a new syntax like -j#2 which would evaluate to 2 * $(nproc), with caveats to previous $(nproc) discussion.

On Mon, Aug 26, 2019 at 8:04 AM Dmitry V. Levin <address@hidden> wrote:
Follow-up Comment #4, bug #56701 (project make):

FWIW, nproc(1) is part of GNU coreutils, it is based on nproc module from
gnulib, so the way it works is probably as much portable as one can get.

If GNU make was using gnulib directly, it would cost just a single invocation
of num_processors.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56701>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-make

reply via email to

[Prev in Thread] Current Thread [Next in Thread]