aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index b287550..2776020 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -659,8 +659,10 @@ namespace build2
if (ti == nullptr)
fail (ploc) << "unknown target type " << pn.type;
+ // Current dir collapses to an empty one.
+ //
if (!pn.dir.empty ())
- pn.dir.normalize (); //@@ NORM (empty)
+ pn.dir.normalize (false, true);
// Find or insert.
//