summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--remake.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/remake.c b/remake.c
index 138cdc6..fe858ae 100644
--- a/remake.c
+++ b/remake.c
@@ -300,7 +300,8 @@ update_file (struct file *file, unsigned int depth)
the diagnostics haven't been issued. If we need the diagnostics
then we will have to continue. */
if (!(f->updated && f->update_status > us_none
- && !f->dontcare && f->no_diag))
+ && !f->dontcare && f->no_diag)
+ && f->command_state!=cs_not_started )
{
DBF (DB_VERBOSE, _("Pruning file '%s'.\n"));
return f->command_state == cs_finished ? f->update_status : 0;