From fb3a7f3343f9ee0cfd15b540a3209e438f6063eb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 12 Nov 2020 09:27:20 +0200 Subject: Assign fixed extensions to wasm{} and pdb{} target types --- libbuild2/scope.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libbuild2/scope.cxx') diff --git a/libbuild2/scope.cxx b/libbuild2/scope.cxx index f8fc634..53c859f 100644 --- a/libbuild2/scope.cxx +++ b/libbuild2/scope.cxx @@ -929,6 +929,15 @@ namespace build2 return root_extra->target_types.insert (name, move (dt)); } + const target_type& scope:: + derive_target_type (const target_type& et) + { + assert (root_scope () == this); + unique_ptr dt (new target_type (et)); + dt->factory = &derived_tt_factory; + return root_extra->target_types.insert (et.name, move (dt)).first; + } + // scope_map // -- cgit v1.1