aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/b.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 6138f6c..8c488df 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -526,6 +526,8 @@ main (int argc, char* argv[])
//
bootstrapped = bootstrap_src (rs);
}
+ else if (src_root.empty ())
+ src_root = rs.src_path ();
// At this stage we should have both roots and out_base figured
// out. If src_base is still undetermined, calculate it.