aboutsummaryrefslogtreecommitdiff
path: root/build/prerequisite.cxx
diff options
context:
space:
mode:
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;
}