diff options
Diffstat (limited to 'build2/target.ixx')
-rw-r--r-- | build2/target.ixx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build2/target.ixx b/build2/target.ixx index f3417aa..19e0dfa 100644 --- a/build2/target.ixx +++ b/build2/target.ixx @@ -4,6 +4,27 @@ namespace build2 { + // target + // + inline const string* target:: + ext () const + { + slock l (targets.mutex_); + return *ext_ ? &**ext_ : nullptr; + } + + inline target_key target:: + key () const + { + const string* e (ext ()); + return target_key { + &type (), + &dir, + &out, + &name, + e != nullptr ? optional<string> (*e) : nullopt}; + } + // prerequisite_member // inline prerequisite prerequisite_member:: |