aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/operation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/operation.cxx')
-rw-r--r--libbuild2/operation.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/operation.cxx b/libbuild2/operation.cxx
index e9b9211..bafc263 100644
--- a/libbuild2/operation.cxx
+++ b/libbuild2/operation.cxx
@@ -85,7 +85,8 @@ namespace build2
{
// Load project's root.build.
//
- load_root (root);
+ if (!root.root_extra->loaded)
+ load_root (root);
// Create the base scope. Note that its existence doesn't mean it was
// already setup as a base scope; it can be the same as root.