diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-16 16:22:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-16 16:22:48 +0200 |
commit | 5c8de4f515c99d894bec764a6793352c9cad0825 (patch) | |
tree | 6a590192c8010e19d9fa152058ba382ec160d603 /build2/target.hxx | |
parent | f3e193b2651b2589daecaf181b96c5622acc51e9 (diff) |
Add support for explicitly specifying module name on mxx{} target
Diffstat (limited to 'build2/target.hxx')
-rw-r--r-- | build2/target.hxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/build2/target.hxx b/build2/target.hxx index 418a8ea..906d92d 100644 --- a/build2/target.hxx +++ b/build2/target.hxx @@ -29,8 +29,10 @@ namespace build2 extern size_t current_on; // From <build/context>. - const target& - search (const target&, const prerequisite&); // From <build2/algorithm.hxx>. + // From <build2/algorithm.hxx>. + // + const target& search (const target&, const prerequisite&); + const target* search_existing (const prerequisite&); // Target state. // @@ -906,6 +908,14 @@ namespace build2 return target != nullptr ? target : prerequisite.target.load (mo); } + const target_type* + search_existing () const + { + return target != nullptr + ? target + : build2::search_existing (prerequisite); + } + // Return as a new prerequisite instance. // prerequisite_type |