aboutsummaryrefslogtreecommitdiff
path: root/build2/file.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-22 17:23:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-22 17:23:49 +0200
commit25eb62acb2bc74f7d1837301987701be3e74540c (patch)
treebc7bee8ecde81cc1d95e9b7dfad3b43290c2161b /build2/file.cxx
parentaeb9a9d66650b55b6b3a39db2b3c8b88367cb306 (diff)
Add few extra tracing statements
Diffstat (limited to 'build2/file.cxx')
-rw-r--r--build2/file.cxx10
1 files changed, 10 insertions, 0 deletions
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<string> (r->vars["project"]) == project)