aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-29 17:44:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-29 17:44:48 +0200
commit074a8c04a384a9752466bd2af69b695333b2955c (patch)
tree707454105647db7886268551ffc661a359e4637c /build2/b.cxx
parentf588f2e5a62d7621d20b2a567b8835bb87ff31f4 (diff)
Reimplement module sidebuilding using an ad hoc subproject
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx19
1 files changed, 10 insertions, 9 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 94c6279..9ad21bc 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -702,17 +702,18 @@ main (int argc, char* argv[])
src_root = out_root;
}
- // Now we know out_root and, if it was explicitly specified
- // or the same as out_root, src_root. The next step is to
- // create the root scope and load the out_root bootstrap
- // files, if any. Note that we might already have done this
- // as a result of one of the preceding target processing.
+ // Now we know out_root and, if it was explicitly specified or the
+ // same as out_root, src_root. The next step is to create the root
+ // scope and load the out_root bootstrap files, if any. Note that we
+ // might already have done this as a result of one of the preceding
+ // target processing.
//
- // If we know src_root, set that variable as well. This could
- // be of use to the bootstrap files (other than src-root.build,
- // which, BTW, doesn't need to exist if src_root == out_root).
+ // If we know src_root, set that variable as well. This could be of
+ // use to the bootstrap files (other than src-root.build, which,
+ // BTW, doesn't need to exist if src_root == out_root).
//
- scope& rs (create_root (*scope::global_, out_root, src_root));
+ scope& rs (
+ create_root (*scope::global_, out_root, src_root)->second);
bool bootstrapped (build2::bootstrapped (rs));