From 5900f155a4a0da88cfd56bedccef0c74cc19c9f7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Jun 2021 12:47:40 +0200 Subject: 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. --- libbuild2/adhoc-rule-regex-pattern.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libbuild2/adhoc-rule-regex-pattern.cxx') 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; -- cgit v1.1