From 1fae906ceaf9d3ac0e3f429aeb4c8fad8b7caad8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 25 Aug 2020 16:54:16 +0200 Subject: Add missing move() call --- libbuild2/install/rule.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libbuild2/install/rule.cxx b/libbuild2/install/rule.cxx index d7b0fc0..a6a0aaf 100644 --- a/libbuild2/install/rule.cxx +++ b/libbuild2/install/rule.cxx @@ -496,6 +496,8 @@ namespace build2 // // If target is not NULL, then also handle the subdirs logic. // + // @@ TODO: detect cycles (maybe by keeping a stack-based linked list). + // static install_dirs resolve (const scope& s, const target* t, @@ -590,7 +592,7 @@ namespace build2 static inline install_dirs resolve (const target& t, dir_path d, bool fail_unknown = true) { - return resolve (t.base_scope (), &t, d, fail_unknown); + return resolve (t.base_scope (), &t, move (d), fail_unknown); } dir_path -- cgit v1.1