aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/dyndep.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-06-14 11:37:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-06-14 11:37:01 +0200
commit5241c7f705beec246f282fcf64e22bbb482a7cba (patch)
tree3a4334340df958c9c9f884e02ba65b9db7501df6 /libbuild2/dyndep.cxx
parente54c7712e3ad199de74fd6c821fb02104f3184d8 (diff)
Improve dyndep_rule::{inject,verify}_existing_file() documentation
Diffstat (limited to 'libbuild2/dyndep.cxx')
-rw-r--r--libbuild2/dyndep.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/dyndep.cxx b/libbuild2/dyndep.cxx
index 6d1a32c..1b2002a 100644
--- a/libbuild2/dyndep.cxx
+++ b/libbuild2/dyndep.cxx
@@ -115,7 +115,7 @@ namespace build2
recipe_function* const* rf (pt[a].recipe.target<recipe_function*> ());
if (rf == nullptr || *rf != &noop_action)
{
- if (!updated_during_match (a, t, pts_n, pt))
+ if (pts_n == 0 || !updated_during_match (a, t, pts_n, pt))
{
fail << what << ' ' << pt << " has non-noop recipe" <<
info << "consider listing it as static prerequisite of " << t;
@@ -143,7 +143,7 @@ namespace build2
recipe_function* const* rf (pt[a].recipe.target<recipe_function*> ());
if (rf == nullptr || *rf != &noop_action)
{
- if (!updated_during_match (a, t, pts_n, pt))
+ if (pts_n == 0 || !updated_during_match (a, t, pts_n, pt))
{
dr << fail << what << ' ' << pt << " has non-noop recipe";
}