aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index 25742d0..e10d940 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -3214,14 +3214,19 @@ namespace build2
}
}
+ bool de (false); // Default extension.
if ((n.pair & 0x01) != 0)
+ {
+ de = static_cast<bool> (e);
tt->pattern (*tt, *scope_, v, e, true);
+ de = de && !e;
+ }
if (dir)
n.dir = dir_path (move (v));
else
{
- target::combine_name (v, e);
+ target::combine_name (v, e, de);
n.value = move (v);
}