aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-30 11:38:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-30 11:38:44 +0200
commite3004011bbab5b0e031804465a0c340c7102be6d (patch)
tree88eacbb174a93258d5fd3b4cddebd9f6a682180b
parentb3f6553294bf6455f6fbee542f6481436f62a460 (diff)
Fix missing src_root initialization
-rw-r--r--build2/file.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/build2/file.cxx b/build2/file.cxx
index 2030d1c..155c8e6 100644
--- a/build2/file.cxx
+++ b/build2/file.cxx
@@ -906,6 +906,8 @@ namespace build2
setup_root (*root);
bootstrap_src (*root);
}
+ else if (src_root.empty ())
+ src_root = root->src_path ();
// Now we know this project's name as well as all its subprojects.
//