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/bin/rule.cxx | |
parent | be773edfa2c8f8f3230509bbd713542d20fbb37e (diff) |
Pass const target& to recipes
Diffstat (limited to 'build2/bin/rule.cxx')
-rw-r--r-- | build2/bin/rule.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/bin/rule.cxx b/build2/bin/rule.cxx index c9e8b3e..a73ad3d 100644 --- a/build2/bin/rule.cxx +++ b/build2/bin/rule.cxx @@ -124,9 +124,9 @@ namespace build2 } target_state lib_rule:: - perform (action act, target& xt) + perform (action act, const target& xt) { - lib& t (static_cast<lib&> (xt)); + const lib& t (static_cast<const lib&> (xt)); const match_data& md (t.data<match_data> ()); const string& type (md.type); |