aboutsummaryrefslogtreecommitdiff
path: root/build2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-14 13:08:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-14 13:08:29 +0200
commitb611e797ad9db9794f4d151f454fa731d12b0bd3 (patch)
treeb202ef1d894a313fb791d5f0af254f67d2ae84b7 /build2/target.hxx
parent6c3d3f62f8560cbb8d1e983a8dd8cc98266bfe37 (diff)
Fallback to loading outer buildfile if there isn't one in src_base
This covers the case where the target is defined in the outer buildfile which is common with non-intrusive project conversions where everything is built from a single root buildfile.
Diffstat (limited to 'build2/target.hxx')
-rw-r--r--build2/target.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index cc9c9bd..ca93b24 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -1668,6 +1668,17 @@ namespace build2
template <typename K>
static const target*
search_implied (const scope&, const K&, tracer&);
+
+ // Return true if the implied buildfile is plausible for the specified
+ // directory, that is, there is a buildfile in at least one of its
+ // subdirectories. Note that the directory must exist.
+ //
+ static bool
+ check_implied (const dir_path&);
+
+ private:
+ static prerequisites_type
+ collect_implied (const scope&);
};
// While a filesystem directory is mtime-based, the semantics is not very