aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/in/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-11-24 13:32:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-11-24 13:32:08 +0200
commit4277226e4b0abea10ff38abdd34636c483a59329 (patch)
tree81045a4c299c02a3afcac0c9744d12e485461d8f /libbuild2/in/rule.cxx
parentd82719606408de169097715d673745a96d9b1d56 (diff)
Add ability to add extra depdb entries in in::rule
Diffstat (limited to 'libbuild2/in/rule.cxx')
-rw-r--r--libbuild2/in/rule.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbuild2/in/rule.cxx b/libbuild2/in/rule.cxx
index 4eab287..941f44d 100644
--- a/libbuild2/in/rule.cxx
+++ b/libbuild2/in/rule.cxx
@@ -157,6 +157,10 @@ namespace build2
l4 ([&]{trace << "substitution mode mismatch forcing update of"
<< t;});
+ // Then additional depdb entries, if any.
+ //
+ perform_update_depdb (a, t, dd);
+
// Then the .in file.
//
if (dd.expect (i.path ()) != nullptr)
@@ -407,6 +411,11 @@ namespace build2
}
void rule::
+ perform_update_depdb (action, const target&, depdb&) const
+ {
+ }
+
+ void rule::
process (const location& l,
action a, const target& t,
depdb& dd, size_t dd_skip,