aboutsummaryrefslogtreecommitdiff
path: root/build/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-02 08:01:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-02 08:01:42 +0200
commit39623df224608e77b5a62dabd35b09783198bc87 (patch)
tree3da359b809055fa737faec8d72d9ed1844e5c447 /build/target
parentd236d61ee9821abc4e8d3e3928ac2dfa9cb57d98 (diff)
Various improvements to cli module
Diffstat (limited to 'build/target')
-rw-r--r--build/target6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/target b/build/target
index 39f6679..4131338 100644
--- a/build/target
+++ b/build/target
@@ -506,6 +506,12 @@ namespace build
return target != nullptr ? target->type () : prerequisite.get ().type;
}
+ const std::string&
+ name () const
+ {
+ return target != nullptr ? target->name : prerequisite.get ().name;
+ }
+
target_type&
search () const
{