aboutsummaryrefslogtreecommitdiff
path: root/build/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-23 15:56:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-23 15:56:03 +0200
commitfefe0657f29b8db782f7a722dd46b074b991cf08 (patch)
tree62008e350c4f6048a68444fe50c47281643d276a /build/context.cxx
parent962cb1040670977085f0a187ecc6730608578151 (diff)
Redo rule match/build logic
Now the rule is fully responsible for searching, matching, and building of prerequisites.
Diffstat (limited to 'build/context.cxx')
-rw-r--r--build/context.cxx20
1 files changed, 1 insertions, 19 deletions
diff --git a/build/context.cxx b/build/context.cxx
index 4d1d1e4..79753ec 100644
--- a/build/context.cxx
+++ b/build/context.cxx
@@ -35,7 +35,7 @@ namespace build
}
path
- translate (const path& p)
+ relative_work (const path& p)
{
if (p.sub (work))
return p.leaf (work);
@@ -49,22 +49,4 @@ namespace build
return p;
}
-
- std::string
- diagnostic_string (const path& p)
- {
- if (p.absolute ())
- {
- path rp (translate (p));
-
-#ifndef _WIN32
- if (rp.absolute () && rp.sub (home))
- return "~/" + rp.leaf (home).string ();
-#endif
-
- return rp.string ();
- }
-
- return p.string ();
- }
}