2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

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

[SVN r52171]
This commit is contained in:
Vladimir Prus
2009-04-04 18:55:37 +00:00
parent d1c45ccc30
commit 69e1e27360

View File

@@ -476,6 +476,25 @@ int main( int argc, char * * argv, char * * arg_environ )
++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 );