aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-09-07 10:56:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-09-07 10:56:46 +0200
commitb6dfd0e94aad546069eee7749a0b78eda45f6a78 (patch)
tree1dcc5b7498077323c821daccd911af4d71df5e45 /libbuild2/algorithm.cxx
parent7595381c1a6aa75eedae3c982d923ba4154c8e32 (diff)
Fix fsdir{} handling corner cases in ad hoc buildscript recipes/rulesdist-remap
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r--libbuild2/algorithm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx
index e2873fb..fcff50e 100644
--- a/libbuild2/algorithm.cxx
+++ b/libbuild2/algorithm.cxx
@@ -1291,7 +1291,7 @@ namespace build2
}
const fsdir*
- inject_fsdir (action a, target& t, bool parent)
+ inject_fsdir (action a, target& t, bool prereq, bool parent)
{
tracer trace ("inject_fsdir");
@@ -1320,7 +1320,7 @@ namespace build2
//
r = &search<fsdir> (t, d, dir_path (), string (), nullptr, nullptr);
}
- else
+ else if (prereq)
{
// See if one was mentioned explicitly.
//