aboutsummaryrefslogtreecommitdiff
path: root/build2/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-14 11:37:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-14 11:37:14 +0200
commit233255f0e14f364841751755958375fe27380ba6 (patch)
tree1571f125ad89f729cbf0c3d7c0b09aba8fe0fc20 /build2/target
parentf262632b20628136369889ebc67a65b252b233af (diff)
Implement implied buildfile support
In essence, if the buildfile is: ./: */ Then it can be omitted entirely (provided there is at least one subdirectory).
Diffstat (limited to 'build2/target')
-rw-r--r--build2/target7
1 files changed, 6 insertions, 1 deletions
diff --git a/build2/target b/build2/target
index ef1e34d..c196060 100644
--- a/build2/target
+++ b/build2/target
@@ -307,7 +307,7 @@ namespace build2
prerequisites () const;
// Swap-in a list of prerequisites. Return false if unsuccessful (i.e.,
- // some beat us to it). Note that it can be called on const target.
+ // someone beat us to it). Note that it can be called on const target.
//
bool
prerequisites (prerequisites_type&&) const;
@@ -1473,6 +1473,11 @@ namespace build2
public:
static const target_type static_type;
virtual const target_type& dynamic_type () const {return static_type;}
+
+ public:
+ template <typename K>
+ static const target*
+ search_implied (const scope&, const K&, tracer&);
};
// While a filesystem directory is mtime-based, the semantics is