From ea18519ec7dfc016665e7dcfd60ebf4a44681346 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 2 Jul 2002 11:53:21 +0000 Subject: [PATCH] Fix "-q" option, thanks to Markus Scherschanski. * jam_src/make1.c (make1d): Quickquit in all cases, not only when DEBUG_MAKE is set. [SVN r14277] --- historic/jam/src/make1.c | 5 +++-- jam_src/make1.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/historic/jam/src/make1.c b/historic/jam/src/make1.c index a5a4cd66a..ade4c750d 100644 --- a/historic/jam/src/make1.c +++ b/historic/jam/src/make1.c @@ -395,10 +395,11 @@ make1d( printf( "...failed %s ", cmd->rule->name ); list_print( lol_get( &cmd->args, 0 ) ); printf( "...\n" ); - - if( globs.quitquick ) ++intr; } + if (status == EXEC_CMD_FAIL) + if( globs.quitquick ) ++intr; + /* If the command was interrupted or failed and the target */ /* is not "precious", remove the targets */ diff --git a/jam_src/make1.c b/jam_src/make1.c index a5a4cd66a..ade4c750d 100644 --- a/jam_src/make1.c +++ b/jam_src/make1.c @@ -395,10 +395,11 @@ make1d( printf( "...failed %s ", cmd->rule->name ); list_print( lol_get( &cmd->args, 0 ) ); printf( "...\n" ); - - if( globs.quitquick ) ++intr; } + if (status == EXEC_CMD_FAIL) + if( globs.quitquick ) ++intr; + /* If the command was interrupted or failed and the target */ /* is not "precious", remove the targets */