From 3ac5998ee4d5e30a35ce7c043b9389598d7f147f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 13 Nov 2020 11:05:31 +0200 Subject: Minor tracing fix and addition --- libbuild2/cc/common.cxx | 3 +++ libbuild2/file.cxx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'libbuild2') diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx index f848003..7d2fd63 100644 --- a/libbuild2/cc/common.cxx +++ b/libbuild2/cc/common.cxx @@ -819,7 +819,10 @@ namespace build2 } if (pd == nullptr) + { + l5 ([&]{trace << "no library found for " << p;}); return nullptr; + } // Enter (or find) the lib{} target group. // diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx index 23bd103..def49b8 100644 --- a/libbuild2/file.cxx +++ b/libbuild2/file.cxx @@ -2586,7 +2586,7 @@ namespace build2 ns.clear (); // NULL } else - l5 ([&]{trace << "postponing " << r.first;}); + l5 ([&]{trace << "postponing " << ns.back ();}); } } -- cgit v1.1