mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Set bjam timeout to maximum of -l options on command line.
Patch to ensure that maximum value is selected when there's multiple -l timeout options. [SVN r66705]
This commit is contained in:
@@ -302,8 +302,11 @@ int main( int argc, char * * argv, char * * arg_environ )
|
||||
if ( ( s = getoptval( optv, 'g', 0 ) ) )
|
||||
globs.newestfirst = 1;
|
||||
|
||||
if ( ( s = getoptval( optv, 'l', 0 ) ) )
|
||||
globs.timeout = atoi( s );
|
||||
/* check for and use maximum value of timeout parameter */
|
||||
for ( n = 0; ( s = getoptval( optv, 'l', n ) ); ++n ) {
|
||||
int t = atoi( s );
|
||||
globs.timeout = globs.timeout < t ? t : globs.timeout;
|
||||
}
|
||||
|
||||
/* Turn on/off debugging */
|
||||
for ( n = 0; ( s = getoptval( optv, 'd', n ) ); ++n )
|
||||
|
||||
Reference in New Issue
Block a user