aboutsummaryrefslogtreecommitdiff
path: root/build2/install/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-16 13:21:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:21 +0200
commitd81ad6a0b20613ac77e115ca273cd48eaeeae1c8 (patch)
tree99fbfd0ab131ead133925ba46786c0db453d5fdf /build2/install/rule.cxx
parentd27a6011a1768c7311ae6911c53dd49c293a24af (diff)
Add target::out_dir() accessor
Diffstat (limited to 'build2/install/rule.cxx')
-rw-r--r--build2/install/rule.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/install/rule.cxx b/build2/install/rule.cxx
index 82dde04..68000af 100644
--- a/build2/install/rule.cxx
+++ b/build2/install/rule.cxx
@@ -273,8 +273,7 @@ namespace build2
{
// The target can be in out or src.
//
- const dir_path& d (
- (t.out.empty () ? t.dir : t.out).leaf (p->out_path ()));
+ const dir_path& d (t.out_dir ().leaf (p->out_path ()));
// Add it as another leading directory rather than modifying
// the last one directly; somehow, it feels right.