From 25eb62acb2bc74f7d1837301987701be3e74540c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 22 Aug 2016 17:23:49 +0200 Subject: Add few extra tracing statements --- build2/file.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build2/file.cxx') diff --git a/build2/file.cxx b/build2/file.cxx index 1aa8c9e..56e1600 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -557,10 +557,16 @@ namespace build2 subprojects sps; if (dir_exists (out_root)) + { + l5 ([&]{trace << "looking for subprojects in " << out_root;}); find_subprojects (sps, out_root, out_root, true); + } if (out_root != src_root) + { + l5 ([&]{trace << "looking for subprojects in " << src_root;}); find_subprojects (sps, src_root, src_root, false); + } if (!sps.empty ()) // Keep it NULL if no subprojects. v = move (sps); @@ -798,6 +804,8 @@ namespace build2 { tracer trace ("import"); + l5 ([&]{trace << target << " from " << ibase.out_path ();}); + // If there is no project specified for this target, then our // run will be short and sweet: we simply return it as empty- // project-qualified and let someone else (e.g., a rule) take @@ -826,6 +834,8 @@ namespace build2 // for (scope* r (&iroot);; r = r->parent_scope ()->root_scope ()) { + l5 ([&]{trace << "looking in " << r->out_path ();}); + // First check the amalgamation itself. // if (r != &iroot && cast (r->vars["project"]) == project) -- cgit v1.1