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.ixx | |
parent | be773edfa2c8f8f3230509bbd713542d20fbb37e (diff) |
Pass const target& to recipes
Diffstat (limited to 'build2/cc/utility.ixx')
-rw-r--r-- | build2/cc/utility.ixx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cc/utility.ixx b/build2/cc/utility.ixx index 8695a8e..bc9cd05 100644 --- a/build2/cc/utility.ixx +++ b/build2/cc/utility.ixx @@ -7,7 +7,7 @@ namespace build2 namespace cc { inline otype - compile_type (target& t) + compile_type (const target& t) { return t.is_a<bin::obje> () ? otype::e : @@ -16,7 +16,7 @@ namespace build2 } inline otype - link_type (target& t) + link_type (const target& t) { return t.is_a<exe> () ? otype::e : |