diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-22 13:12:51 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-27 09:24:07 +0200 |
commit | 56499cc66ca248029aa584fe9f5de04eeb24702f (patch) | |
tree | 9e5eac974a3310da1122c27dba596c0df03310c4 /libbuild2 | |
parent | ec0813e4e66172bff73f09772257a580723575bd (diff) |
Fix assertion failure when name extension pattern is used
Diffstat (limited to 'libbuild2')
-rw-r--r-- | libbuild2/parser.cxx | 4 |
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 |