aboutsummaryrefslogtreecommitdiff
path: root/build2/file.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-14 13:08:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-14 13:08:29 +0200
commitb611e797ad9db9794f4d151f454fa731d12b0bd3 (patch)
treeb202ef1d894a313fb791d5f0af254f67d2ae84b7 /build2/file.cxx
parent6c3d3f62f8560cbb8d1e983a8dd8cc98266bfe37 (diff)
Fallback to loading outer buildfile if there isn't one in src_base
This covers the case where the target is defined in the outer buildfile which is common with non-intrusive project conversions where everything is built from a single root buildfile.
Diffstat (limited to 'build2/file.cxx')
-rw-r--r--build2/file.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/build2/file.cxx b/build2/file.cxx
index 3f0e7b7..51bb810 100644
--- a/build2/file.cxx
+++ b/build2/file.cxx
@@ -24,15 +24,15 @@ using namespace butl;
namespace build2
{
- const dir_path build_dir ("build");
- const dir_path root_dir (dir_path (build_dir) /= "root");
+ const dir_path build_dir ("build");
+ const dir_path root_dir (dir_path (build_dir) /= "root");
const dir_path bootstrap_dir (dir_path (build_dir) /= "bootstrap");
- const path root_file (build_dir / "root.build");
- const path bootstrap_file (build_dir / "bootstrap.build");
- const path src_root_file (bootstrap_dir / "src-root.build");
- const path out_root_file (bootstrap_dir / "out-root.build");
- const path export_file (build_dir / "export.build");
+ const path root_file (build_dir / "root.build");
+ const path bootstrap_file (build_dir / "bootstrap.build");
+ const path src_root_file (bootstrap_dir / "src-root.build");
+ const path out_root_file (bootstrap_dir / "out-root.build");
+ const path export_file (build_dir / "export.build");
// While strictly speaking it belongs in, say, config/module.cxx, the static
// initialization order strikes again. If we ever make the config module
@@ -40,6 +40,8 @@ namespace build2
//
const path config_file (build_dir / "config.build");
+ const path buildfile_file ("buildfile");
+
ostream&
operator<< (ostream& os, const subprojects& sps)
{