aboutsummaryrefslogtreecommitdiff
path: root/build/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-24 13:53:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-24 13:53:28 +0200
commite815af118562c68794efbd310c887acd8eae800c (patch)
treecedd8745cce259693c038c309d663a682c982e98 /build/rule.cxx
parent4f52c4ed65883dacef32587cf066fbb1182c6628 (diff)
First take on the cli module plus necessary infrastructure
Diffstat (limited to 'build/rule.cxx')
-rw-r--r--build/rule.cxx13
1 files changed, 2 insertions, 11 deletions
diff --git a/build/rule.cxx b/build/rule.cxx
index b3dfaeb..baed3ba 100644
--- a/build/rule.cxx
+++ b/build/rule.cxx
@@ -49,22 +49,13 @@ namespace build
{
case perform_update_id:
{
- // @@ TODO:
- //
- // - need to try all the target-type-specific extensions, just
- // like search_existing_file().
- //
path_target& pt (dynamic_cast<path_target&> (t));
- // Assign the path. While nromally we shouldn't do this in match(),
+ // Assign the path. While normally we shouldn't do this in match(),
// no other rule should ever be ambiguous with the fallback one.
//
if (pt.path ().empty ())
- {
- // @@ TMP: using target name as the default extension.
- //
- pt.path (pt.derived_path (pt.type ().name));
- }
+ pt.derive_path ();
return pt.mtime () != timestamp_nonexistent ? &t : nullptr;
}