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 <invalid.nore...@gnu.org> 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 > Bug-make@gnu.org > https://lists.gnu.org/mailman/listinfo/bug-make >
_______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make