Mercurial > hg > octave-nkf
changeset 19800:b74ae93040e8
limit number of jobs for make command to 1 under windows (bug #44053)
* scripts/pkg/private/configure_make.m: set jobs as 1 in pc,
nproc ("overridable") if not pc
author | Avinoam Kalma |
---|---|
date | Wed, 21 Jan 2015 21:19:38 -0500 |
parents | f3ac54ac2c6a |
children | b705f88044be |
files | scripts/pkg/private/configure_make.m |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/pkg/private/configure_make.m +++ b/scripts/pkg/private/configure_make.m @@ -79,10 +79,15 @@ endif ## Make. + if (ispc ()) + jobs = 1; + else + jobs = nproc ("overridable"); + endif + if (exist (fullfile (src, "Makefile"), "file")) [status, output] = shell (sprintf ("%s make --jobs %i --directory '%s'", - scenv, nproc ("overridable"), src), - verbose); + scenv, jobs, src), verbose); if (status != 0) rmdir (desc.dir, "s"); disp (output);