aboutsummaryrefslogtreecommitdiff
path: root/build/prerequisite.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-24 08:27:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-24 08:27:04 +0200
commitfdb050b4b1b966683ff00dd14b268fe395492358 (patch)
treeb4da8e293eef9d8682c14cf64f2ed25cc1cc75ab /build/prerequisite.cxx
parent52925684387496e83425c79f74b29a91943466a7 (diff)
Use prefix_map for scopes, establish root scope
Diffstat (limited to 'build/prerequisite.cxx')
-rw-r--r--build/prerequisite.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/prerequisite.cxx b/build/prerequisite.cxx
index debafe6..f2c72e5 100644
--- a/build/prerequisite.cxx
+++ b/build/prerequisite.cxx
@@ -30,7 +30,7 @@ namespace build
{
string s (diag_relative_work (p.scope.path ()));
- if (!s.empty ())
+ if (!s.empty () && s.back () != path::traits::directory_separator)
os << s << path::traits::directory_separator << ": ";
}
@@ -40,7 +40,7 @@ namespace build
{
string s (diag_relative_work (p.dir));
- if (!s.empty ())
+ if (!s.empty () && s.back () != path::traits::directory_separator)
os << s << path::traits::directory_separator;
}