diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-09 11:31:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-12 17:04:22 +0200 |
commit | 9fa5f73d00905568e8979d0c93ec4a8f645c81d5 (patch) | |
tree | f2bf937fa256c0ef2c9bbe05d3655d1985719405 /build2/algorithm.ixx | |
parent | a1b2319ff2ddc8a6f139ee364cabe236ca62e23e (diff) |
Implement support for C compilation
We now have two new modules: cc (c-common) and c.
Diffstat (limited to 'build2/algorithm.ixx')
-rw-r--r-- | build2/algorithm.ixx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build2/algorithm.ixx b/build2/algorithm.ixx index 17c9d8d..c9c6b02 100644 --- a/build2/algorithm.ixx +++ b/build2/algorithm.ixx @@ -200,4 +200,19 @@ namespace build2 default: return execute_impl (a, t); } } + + template <typename T> + inline T* + execute_prerequisites (action a, target& t, const timestamp& mt) + { + return static_cast<T*> (execute_prerequisites (T::static_type, a, t, mt)); + } + + template <typename T> + inline T* + execute_prerequisites (const target_type& tt, + action a, target& t, const timestamp& mt) + { + return static_cast<T*> (execute_prerequisites (tt, a, t, mt)); + } } |