From 1898c3d67ef4cc5e7ec466aab4ca41ce32ad2f0d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 9 Jun 2018 17:54:06 +0200 Subject: Minor diagnostics improvement --- build2/cc/link-rule.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build2/cc/link-rule.cxx b/build2/cc/link-rule.cxx index a6294bf..4e7ca9a 100644 --- a/build2/cc/link-rule.cxx +++ b/build2/cc/link-rule.cxx @@ -994,7 +994,10 @@ namespace build2 // Searching our own prerequisite is ok, p1 must already be // resolved. // - if (&p.search (t) != &p1.search (*pt)) + const target& tp (p.search (t)); + const target& tp1 (p1.search (*pt)); + + if (&tp != &tp1) { bool group (!p.prerequisite.belongs (t)); @@ -1006,6 +1009,8 @@ namespace build2 << "would be incompatible with existing target " << *pt << info << "existing prerequisite " << p1 << " does not match " << p << + info << p1 << " resolves to target " << tp1 << + info << p << " resolves to target " << tp << info << "specify corresponding " << rtt.name << "{} " << "dependency explicitly"; } -- cgit v1.1