From 8e0e8edb727a5367d991880b033eb13060f4c8eb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 26 Aug 2019 07:34:15 +0200 Subject: Make target types project-wide --- libbuild2/file.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbuild2/file.cxx') diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx index 7520af2..4eaf854 100644 --- a/libbuild2/file.cxx +++ b/libbuild2/file.cxx @@ -443,8 +443,8 @@ namespace build2 assert (altn && root.root_extra == nullptr); bool a (*altn); - root.root_extra = unique_ptr ( - new scope::root_data { + root.root_extra.reset ( + new scope::root_extra_type { a, a ? alt_build_ext : std_build_ext, a ? alt_build_dir : std_build_dir, @@ -460,7 +460,8 @@ namespace build2 {}, /* meta_operations */ {}, /* operations */ {}, /* modules */ - {} /* override_cache */}); + {}, /* override_cache */ + {}} /* target_types */); // Enter built-in meta-operation and operation names. Loading of // modules (via the src bootstrap; see below) can result in -- cgit v1.1