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/context.cxx | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'libbuild2/context.cxx') diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx index e8232c7..924c370 100644 --- a/libbuild2/context.cxx +++ b/libbuild2/context.cxx @@ -262,15 +262,21 @@ namespace build2 { target_type_map& t (data_->global_target_types); - t.insert (); - t.insert (); - t.insert (); - t.insert (); - t.insert (); - t.insert (); - t.insert (); - t.insert (); - t.insert (); + // These are abstract. + // + t.insert (); + t.insert (); + t.insert (); + + t.insert (); + t.insert (); + t.insert (); + t.insert (); + t.insert (); + t.insert (); + t.insert (); + t.insert (); + t.insert (); { auto& tt (t.insert ()); -- cgit v1.1