diff --git a/jam/Jam.html b/jam/Jam.html index c1cbc4f129..c174c46cfe 100644 --- a/jam/Jam.html +++ b/jam/Jam.html @@ -1134,6 +1134,7 @@ jam [ -a ] [ -g ] [ -n ] [ -q ] [ -v ]
JAMDATETime and date at jam start-up. +
JAMJOBSNumber of shell commands to run concurrently, as specified by jam -jx.
JAMUNAMEOuput of uname(1) command (Unix only)
JAMVERSIONjam version, as reported by jam -v. diff --git a/jam/jam.c b/jam/jam.c index 13fbb88504..2bbf1ae228 100644 --- a/jam/jam.c +++ b/jam/jam.c @@ -229,7 +229,10 @@ main( int argc, char **argv, char **arg_environ ) anyhow++; if( ( s = getoptval( optv, 'j', 0 ) ) ) + { globs.jobs = atoi( s ); + var_set( "JAMJOBS", list_new( L0, s, 0 ), VAR_SET ); + } if( ( s = getoptval( optv, 'g', 0 ) ) ) globs.newestfirst = 1;