2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

enable -q, thanks to "Markus Scherschanski" <mscherschanski@dspace.de>

[SVN r14083]
This commit is contained in:
Dave Abrahams
2002-06-05 13:38:17 +00:00
parent d016ba8229
commit c9481ab35f
4 changed files with 10 additions and 0 deletions

View File

@@ -221,6 +221,7 @@ int main( int argc, char **argv, char **arg_environ )
printf( "-jx Run up to x shell commands concurrently.\n" );
printf( "-n Don't actually execute the updating actions.\n" );
printf( "-ox Write the updating actions to file x.\n" );
printf( "-q Quit quickly as soon as a target fails.\n" );
printf( "-sx=y Set variable x=y, overriding environment.\n" );
printf( "-tx Rebuild x, even if it is up-to-date.\n" );
printf( "-v Print the version of jam and exit.\n" );
@@ -249,6 +250,8 @@ int main( int argc, char **argv, char **arg_environ )
if( ( s = getoptval( optv, 'n', 0 ) ) )
globs.noexec++, globs.debug[2] = 1;
if( ( s = getoptval( optv, 'q', 0 ) ) )
globs.quitquick = 1;
if( ( s = getoptval( optv, 'a', 0 ) ) )
anyhow++;

View File

@@ -395,6 +395,8 @@ make1d(
printf( "...failed %s ", cmd->rule->name );
list_print( lol_get( &cmd->args, 0 ) );
printf( "...\n" );
if( globs.quitquick ) ++intr;
}
/* If the command was interrupted or failed and the target */

View File

@@ -221,6 +221,7 @@ int main( int argc, char **argv, char **arg_environ )
printf( "-jx Run up to x shell commands concurrently.\n" );
printf( "-n Don't actually execute the updating actions.\n" );
printf( "-ox Write the updating actions to file x.\n" );
printf( "-q Quit quickly as soon as a target fails.\n" );
printf( "-sx=y Set variable x=y, overriding environment.\n" );
printf( "-tx Rebuild x, even if it is up-to-date.\n" );
printf( "-v Print the version of jam and exit.\n" );
@@ -249,6 +250,8 @@ int main( int argc, char **argv, char **arg_environ )
if( ( s = getoptval( optv, 'n', 0 ) ) )
globs.noexec++, globs.debug[2] = 1;
if( ( s = getoptval( optv, 'q', 0 ) ) )
globs.quitquick = 1;
if( ( s = getoptval( optv, 'a', 0 ) ) )
anyhow++;

View File

@@ -395,6 +395,8 @@ make1d(
printf( "...failed %s ", cmd->rule->name );
list_print( lol_get( &cmd->args, 0 ) );
printf( "...\n" );
if( globs.quitquick ) ++intr;
}
/* If the command was interrupted or failed and the target */