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/common | |
parent | be773edfa2c8f8f3230509bbd713542d20fbb37e (diff) |
Pass const target& to recipes
Diffstat (limited to 'build2/cc/common')
-rw-r--r-- | build2/cc/common | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/build2/cc/common b/build2/cc/common index 06df4c3..860913e 100644 --- a/build2/cc/common +++ b/build2/cc/common @@ -184,18 +184,16 @@ namespace build2 // public: void - process_libraries (const scope&, - lorder, - const dir_paths&, - file&, - bool, - const function<bool (file&, bool)>&, - const function<void (file*, const string&, bool)>&, - const function<void (file&, - const string&, - bool, - bool)>&, - bool = false) const; + process_libraries ( + const scope&, + lorder, + const dir_paths&, + const file&, + bool, + const function<bool (const file&, bool)>&, + const function<void (const file*, const string&, bool)>&, + const function<void (const file&, const string&, bool, bool)>&, + bool = false) const; target* search_library (const dir_paths& sysd, @@ -209,7 +207,7 @@ namespace build2 } private: - file& + const file& resolve_library (const scope&, name, lorder, |