diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-07 08:09:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:42 +0200 |
commit | 7b9eb752cad04aaadc4552d0f26d307b04af1869 (patch) | |
tree | d19cdb450ddec384ec41d9129f8d4afecc14acb7 /build2/prerequisite | |
parent | be773edfa2c8f8f3230509bbd713542d20fbb37e (diff) |
Pass const target& to recipes
Diffstat (limited to 'build2/prerequisite')
-rw-r--r-- | build2/prerequisite | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build2/prerequisite b/build2/prerequisite index a6d3632..9e1dbfa 100644 --- a/build2/prerequisite +++ b/build2/prerequisite @@ -71,10 +71,9 @@ namespace build2 const optional<string> ext; // Absent if unspecified. const scope_type& scope; - target_type* target; // NULL if not yet resolved. Note that this - // should always be the "primary target", not - // a member of a target group. - + const_ptr<target_type> target; // NULL if not yet resolved. Note that this + // should always be the "primary target", + // not a member of a target group. public: prerequisite (optional<string> p, const target_type_type& t, |