aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/file.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-26 07:34:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-26 07:34:15 +0200
commit8e0e8edb727a5367d991880b033eb13060f4c8eb (patch)
tree75916dbef9b7a0dc6ef0fa939b9f748fc353d5cc /libbuild2/file.cxx
parent113c43a42d20073428d46c04a1aa1cb305ea12d7 (diff)
Make target types project-wide
Diffstat (limited to 'libbuild2/file.cxx')
-rw-r--r--libbuild2/file.cxx7
1 files changed, 4 insertions, 3 deletions
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<scope::root_data> (
- 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