diff options
Diffstat (limited to 'build/cli/target.cxx')
-rw-r--r-- | build/cli/target.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/build/cli/target.cxx b/build/cli/target.cxx index aded1ff..2f8b54c 100644 --- a/build/cli/target.cxx +++ b/build/cli/target.cxx @@ -4,7 +4,10 @@ #include <build/cli/target> +#include <butl/filesystem> + using namespace std; +using namespace butl; namespace build { @@ -34,11 +37,20 @@ namespace build : group_view {nullptr, 0}; } + timestamp cli_cxx:: + load_mtime () const + { + // The rule has been matched which means the members should + // be resolved and paths assigned. + // + return file_mtime (h ()->path ()); + } + const target_type cli_cxx::static_type { typeid (cli_cxx), "cli.cxx", - &target::static_type, + &mtime_target::static_type, &target_factory<cli_cxx>, nullptr, &search_target, |