From 53f8c12cb587d0500ce6b2f1bb67e186cea610f1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 12 Jul 2016 15:51:35 +0200 Subject: Get src_root value if we have already bootstrapped this project This fixes a core dump in out-of-source 'clean update' run. --- build2/b.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build2/b.cxx') 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. -- cgit v1.1