aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-04-22 13:12:51 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2020-04-27 09:24:07 +0200
commit56499cc66ca248029aa584fe9f5de04eeb24702f (patch)
tree9e5eac974a3310da1122c27dba596c0df03310c4 /libbuild2
parentec0813e4e66172bff73f09772257a580723575bd (diff)
Fix assertion failure when name extension pattern is used
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/parser.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index e86212c..e3f9605 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -4296,6 +4296,10 @@ namespace build2
{
v += '.';
v += *e;
+
+ if (path_pattern (*e))
+ fail (l) << "extension pattern in '" << v << "' (" << what
+ << " extension patterns are not yet supported)";
}
try