[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:
Dmitry Goncharov 2022-01-21 18:29:23 -05:00 committed by Paul Smith
parent f0ab709640
commit d34f46c1f3

View file

@ -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