mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-29 08:09:03 +00:00
(update_goal_chain): Set STATUS to FILE->update_status, to preserve whether
it's 2 for error or 1 for -q trigger. When STATUS gets nonzero and -q is set, always stop immediately.
This commit is contained in:
parent
716e804b5b
commit
cbfe6d75f6
1 changed files with 8 additions and 3 deletions
11
remake.c
11
remake.c
|
@ -144,9 +144,14 @@ update_goal_chain (goals, makefiles)
|
||||||
{
|
{
|
||||||
if (file->update_status != 0)
|
if (file->update_status != 0)
|
||||||
{
|
{
|
||||||
/* Updating failed. */
|
/* Updating failed, or -q triggered.
|
||||||
status = 1;
|
The STATUS value tells our caller which. */
|
||||||
stop = !keep_going_flag && !makefiles;
|
status = file->update_status;
|
||||||
|
/* If -q just triggered, stop immediately.
|
||||||
|
It doesn't matter how much more we run,
|
||||||
|
since we already know the answer to return. */
|
||||||
|
stop = (!keep_going_flag && !question_flag
|
||||||
|
&& !makefiles);
|
||||||
}
|
}
|
||||||
else if (MTIME (file) != mtime)
|
else if (MTIME (file) != mtime)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue