mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-27 09:43:41 +00:00
[SV 48643] Make prereqs mentioned in unrelated rules explicit
* src/implicit.c (pattern_search): Set is_explicit when a prereq is mentioned in an unrelated rule.
This commit is contained in:
parent
f0ab709640
commit
d34f46c1f3
1 changed files with 3 additions and 0 deletions
|
@ -761,6 +761,9 @@ pattern_search (struct file *file, int archive,
|
|||
|
||||
df = lookup_file (d->name);
|
||||
|
||||
if (df && df->is_explicit)
|
||||
pat->is_explicit = 1;
|
||||
|
||||
/* If we found a file for the dep, set its intermediate flag.
|
||||
df->is_explicit is set when the dep file is mentioned
|
||||
explicitly on some other rule. d->is_explicit is set when
|
||||
|
|
Loading…
Reference in a new issue