mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-07 13:03:08 +00:00
(update_file_1): Do set_command_state (FILE, cs_not_started) only if old
state was deps_running.
This commit is contained in:
parent
b61a13463d
commit
2e9779fdb4
1 changed files with 10 additions and 1 deletions
9
remake.c
9
remake.c
|
@ -491,6 +491,15 @@ update_file_1 (file, depth)
|
||||||
return dep_status;
|
return dep_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (file->command_state == cs_deps_running)
|
||||||
|
/* The commands for some deps were running on the last iteration, but
|
||||||
|
they have finished now. Reset the command_state to not_started to
|
||||||
|
simplify later bookkeeping. It is important that we do this only
|
||||||
|
when the prior state was cs_deps_running, because that prior state
|
||||||
|
was definitely propagated to FILE's also_make's by set_command_state
|
||||||
|
(called above), but in another state an also_make may have
|
||||||
|
independently changed to finished state, and we would confuse that
|
||||||
|
file's bookkeeping (updated, but not_started is bogus state). */
|
||||||
set_command_state (file, cs_not_started);
|
set_command_state (file, cs_not_started);
|
||||||
|
|
||||||
/* Now record which dependencies are more
|
/* Now record which dependencies are more
|
||||||
|
|
Loading…
Reference in a new issue