diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-12 15:51:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-12 15:51:35 +0200 |
commit | 53f8c12cb587d0500ce6b2f1bb67e186cea610f1 (patch) | |
tree | 80d999817d4b1b217d09f2ef883fdb533f1a95e6 | |
parent | 781a3f970df6b96cb202eaa2f03597f0beb548d2 (diff) |
Get src_root value if we have already bootstrapped this project
This fixes a core dump in out-of-source 'clean update' run.
-rw-r--r-- | build2/b.cxx | 2 |
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. |