Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52171 - trunk/tools/jam/src
From: ghost_at_[hidden]
Date: 2009-04-04 14:55:37


Author: vladimir_prus
Date: 2009-04-04 14:55:37 EDT (Sat, 04 Apr 2009)
New Revision: 52171
URL: http://svn.boost.org/trac/boost/changeset/52171

Log:
Allow Boost.Build to override the value of -j.

Text files modified:
   trunk/tools/jam/src/jam.c | 19 +++++++++++++++++++
   1 files changed, 19 insertions(+), 0 deletions(-)

Modified: trunk/tools/jam/src/jam.c
==============================================================================
--- trunk/tools/jam/src/jam.c (original)
+++ trunk/tools/jam/src/jam.c 2009-04-04 14:55:37 EDT (Sat, 04 Apr 2009)
@@ -476,6 +476,25 @@
             ++globs.noexec;
         }
 
+ /* The build system may set the PARALLELISM variable to override -j
+ options. */
+ {
+ LIST *p = L0;
+ p = var_get ("PARALLELISM");
+ if (p)
+ {
+ int j = atoi (p->string);
+ if (j == -1)
+ {
+ printf( "Invalid value of PARALLELISM: %s\n", p->string);
+ }
+ else
+ {
+ globs.jobs = j;
+ }
+ }
+ }
+
         /* Now make target. */
         {
             PROFILE_ENTER( MAIN_MAKE );


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk