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/cc/utility | |
parent | be773edfa2c8f8f3230509bbd713542d20fbb37e (diff) |
Pass const target& to recipes
Diffstat (limited to 'build2/cc/utility')
-rw-r--r-- | build2/cc/utility | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/build2/cc/utility b/build2/cc/utility index 050b645..bb7ed34 100644 --- a/build2/cc/utility +++ b/build2/cc/utility @@ -22,10 +22,10 @@ namespace build2 // Compile/link output type. // otype - compile_type (target&); + compile_type (const target&); otype - link_type (target&); + link_type (const target&); // Library link order. // @@ -41,8 +41,13 @@ namespace build2 // Given the link order return the library member (liba or libs) to link. // + // Note that the const version assumes you have already called non-const. + // target& link_member (bin::lib&, lorder); + + const target& + link_member (const bin::lib&, lorder); } } |