aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-08-25 16:54:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-08-25 16:54:16 +0200
commit1fae906ceaf9d3ac0e3f429aeb4c8fad8b7caad8 (patch)
tree8fdc88d2c4306f85194ab80ac6b3b8e66b72b45c /libbuild2/install
parent3cf8015a4941c43ae82100dc0d998945485d760c (diff)
Add missing move() call
Diffstat (limited to 'libbuild2/install')
-rw-r--r--libbuild2/install/rule.cxx4
1 files changed, 3 insertions, 1 deletions
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