From b8cffb11a45add241e4b8420ba96e116efccfbd9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Jun 2020 07:40:54 +0200 Subject: Make metadata variable prefix mandatory While we could automatically set it if the target is imported, there is nothing we can do if the target is used in the same project. So to avoid confusion we make it mandatory. --- libbuild2/variable.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libbuild2/variable.cxx') diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx index 9009fdc..79d0018 100644 --- a/libbuild2/variable.cxx +++ b/libbuild2/variable.cxx @@ -483,11 +483,8 @@ namespace build2 // uint64_t value // uint64_t value_traits:: - convert (name&& n, name* r) + convert (const name& n, const name* r) { - // Note: in some places we reply on this function not - // changing the passed name. - // if (r == nullptr && n.simple ()) { try -- cgit v1.1