aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-03-15 10:55:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-03-15 10:55:03 +0200
commit639c02bd1dc9892fecadb353b23d35028668183d (patch)
treefd449abbe01af04cd64274ed4a64224fe8191bd1 /libbuild2/cc
parent8c257da85cde2df8f459f0c7610445971fffb2a8 (diff)
Don't consider mtime of failed to unmatch prerequisite in ad hoc recipe
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/link-rule.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/cc/link-rule.cxx b/libbuild2/cc/link-rule.cxx
index 2e644cc..c05522d 100644
--- a/libbuild2/cc/link-rule.cxx
+++ b/libbuild2/cc/link-rule.cxx
@@ -1224,7 +1224,8 @@ namespace build2
// update them. Note that we have to do it before any further matches
// since they may rely on these prerequisites already being updated (for
// example, object file matches may need the headers to be already
- // updated).
+ // updated). We also must do it after matching all our prerequisite
+ // libraries since they may generate headers that we depend upon.
//
// Note that we ignore the result and whether it renders us out of date,
// leaving it to the common execute logic in perform_update().