aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/search.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-11 20:53:32 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2020-12-14 09:30:44 +0200
commitca6a61f432f3ff0257e868bed36a58540623ab49 (patch)
treee3652b0376b9a6235aec6c32b5d9bd410e0507e5 /libbuild2/search.cxx
parent4e8e690640c1dc9ecc78edce1c2e11c28850bfa2 (diff)
Fix bug in create_new_target_locked()
Diffstat (limited to 'libbuild2/search.cxx')
-rw-r--r--libbuild2/search.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/libbuild2/search.cxx b/libbuild2/search.cxx
index b341c85..25a4199 100644
--- a/libbuild2/search.cxx
+++ b/libbuild2/search.cxx
@@ -278,9 +278,16 @@ namespace build2
tk.ext,
target_decl::prereq_new,
trace));
+ l5 ([&]
+ {
+ diag_record dr (trace);
+ if (r.second)
+ dr << "new target " << r.first.key_locked ();
+ else
+ dr << "existing target " << r.first;
+ dr << " for prerequisite " << pk;
+ });
- l5 ([&]{trace << (r.second ? "new" : "existing") << " target " << r.first
- << " for prerequisite " << pk;});
return r;
}
}