aboutsummaryrefslogtreecommitdiff
path: root/build2/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-07 10:05:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:42 +0200
commitbcfcc38538af8bb896551c9e5730767807ad7a67 (patch)
tree722e71364bf6d8080ca61d8b2d02879520d90765 /build2/target
parent7b9eb752cad04aaadc4552d0f26d307b04af1869 (diff)
Tighten code that operates during both search/match and execute
Diffstat (limited to 'build2/target')
-rw-r--r--build2/target12
1 files changed, 12 insertions, 0 deletions
diff --git a/build2/target b/build2/target
index 7653da6..2eb6a2c 100644
--- a/build2/target
+++ b/build2/target
@@ -1029,6 +1029,18 @@ namespace build2
return find (target_key {&type, &dir, &out, &name, ext}, trace);
}
+ template <typename T>
+ T*
+ find (const target_type& type,
+ const dir_path& dir,
+ const dir_path& out,
+ const string& name,
+ const optional<string>& ext,
+ tracer& trace) const
+ {
+ return static_cast<T*> (find (type, dir, out, name, ext, trace));
+ }
+
// As above but ignore the extension.
//
template <typename T>