tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: MAKE_JOBS.devel/cmake ineffective
On Thu, Nov 05, 2020 at 01:26:26AM +0100, Roland Illig wrote:
> On 04.11.2020 14:44, Joerg Sonnenberger wrote:
> > At least for bmake it makes a huge difference and not necessarily in the
> > right direction. -j1 and no -j are quite different modes.
>
> To explain this a bit more:
>
> Without the -j, each shell command for a target is run in its own
> subshell, which means that exit or cd will not affect subsequent
> commands. Very simple commands completely bypass the shell, using
> execvp directly.
>
> In -j mode (whether -j1 or -j8), all shell commands of a target are
> first written to a temporary shell program that is then executed. An
> exit in the first of these commands will skip all subsequent commands of
> that target.
That said, any package that breaks on this difference is wrong and
should be patched up :-)
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index