From 9ceedecc39d85ab8bc907eea54889ad3ee3b335e Mon Sep 17 00:00:00 2001 From: Matt Madia Date: Thu, 22 Dec 2011 21:54:22 +0000 Subject: [PATCH] Created new jam variable JAMJOBS, which is set by the -jx flag. --- jam/Jam.html | 1 + jam/jam.c | 3 +++ 2 files changed, 4 insertions(+) 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;