From 7b9eb752cad04aaadc4552d0f26d307b04af1869 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Feb 2017 08:09:53 +0200 Subject: Pass const target& to recipes --- build2/cc/utility.ixx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/cc/utility.ixx') 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 () ? otype::e : @@ -16,7 +16,7 @@ namespace build2 } inline otype - link_type (target& t) + link_type (const target& t) { return t.is_a () ? otype::e : -- cgit v1.1