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/compile | |
parent | be773edfa2c8f8f3230509bbd713542d20fbb37e (diff) |
Pass const target& to recipes
Diffstat (limited to 'build2/cc/compile')
-rw-r--r-- | build2/cc/compile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/build2/cc/compile b/build2/cc/compile index b6fc7d6..63ce286 100644 --- a/build2/cc/compile +++ b/build2/cc/compile @@ -33,17 +33,23 @@ namespace build2 apply (slock&, action, target&) const override; target_state - perform_update (action, target&) const; + perform_update (action, const target&) const; target_state - perform_clean (action, target&) const; + perform_clean (action, const target&) const; private: void - append_lib_options (const scope&, cstrings&, target&, lorder) const; + append_lib_options (const scope&, + cstrings&, + const target&, + lorder) const; void - hash_lib_options (const scope&, sha256&, target&, lorder) const; + hash_lib_options (const scope&, + sha256&, + const target&, + lorder) const; // Mapping of include prefixes (e.g., foo in <foo/bar>) for auto- // generated headers to directories where they will be generated. @@ -58,7 +64,7 @@ namespace build2 using prefix_map = butl::dir_path_map<dir_path>; void - append_prefixes (prefix_map&, target&, const variable&) const; + append_prefixes (prefix_map&, const target&, const variable&) const; void append_lib_prefixes (const scope&, prefix_map&, target&, lorder) const; |