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/rule.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/rule.cxx') diff --git a/build2/rule.cxx b/build2/rule.cxx index 88c7941..922a4f7 100644 --- a/build2/rule.cxx +++ b/build2/rule.cxx @@ -163,7 +163,7 @@ namespace build2 } target_state fsdir_rule:: - perform_update (action a, target& t) + perform_update (action a, const target& t) { target_state ts (target_state::unchanged); @@ -203,7 +203,7 @@ namespace build2 } target_state fsdir_rule:: - perform_clean (action a, target& t) + perform_clean (action a, const target& t) { // The reverse order of update: first delete this directory, // then clean prerequisites (e.g., delete parent directories). -- cgit v1.1