From e70e392ddd5cb7b9075d6a9366a0b14ff8230fc8 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] --- src/engine/make1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/make1.c b/src/engine/make1.c index a5a4cd66a..ade4c750d 100644 --- a/src/engine/make1.c +++ b/src/engine/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 */