aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/adhoc-rule-regex-pattern.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-06-08 12:47:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-06-08 13:50:35 +0200
commit41cdd833e6ea37752be183541cfa5c5fbdc11ab1 (patch)
tree5d6705f426b2d3ad8bfc975a26b9b6e949e26681 /libbuild2/adhoc-rule-regex-pattern.cxx
parent23a8204d60a7f189fa4659f51b828599fc5838a3 (diff)
Get rid of special *{} wildcard target type notation in target type/patterns
Explicit target{} should be used instead. Also, in this context, absent target type is now treated as file{} rather than target{}, for consistency with all other cases.
Diffstat (limited to 'libbuild2/adhoc-rule-regex-pattern.cxx')
-rw-r--r--libbuild2/adhoc-rule-regex-pattern.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbuild2/adhoc-rule-regex-pattern.cxx b/libbuild2/adhoc-rule-regex-pattern.cxx
index 4c8c1e5..c621b67 100644
--- a/libbuild2/adhoc-rule-regex-pattern.cxx
+++ b/libbuild2/adhoc-rule-regex-pattern.cxx
@@ -83,9 +83,7 @@ namespace build2
{
if (tt == nullptr)
{
- tt = n.untyped () || n.type == "*"
- ? &target::static_type
- : s.find_target_type (n.type);
+ tt = n.untyped () ? &file::static_type : s.find_target_type (n.type);
if (tt == nullptr)
fail (loc) << "unknown target type " << n.type;