From d503f45ab1b5ee91425dc89cd1b72e7239fa5f10 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Dec 2017 14:42:31 +0200 Subject: Improve cc/bin target mismatch diagnostics --- build2/cc/init.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'build2/cc/init.cxx') diff --git a/build2/cc/init.cxx b/build2/cc/init.cxx index 7a3e99e..b2cb2b3 100644 --- a/build2/cc/init.cxx +++ b/build2/cc/init.cxx @@ -280,9 +280,13 @@ namespace build2 const auto& bt (cast (rs["bin.target"])); if (bt != ct) - fail (loc) << "cc and bin module target mismatch" << - info << "cc.target is " << ct << - info << "bin.target is " << bt; + { + const auto& h (cast (rs["cc.hinter"])); + + fail (loc) << h << " and bin module target mismatch" << + info << h << " target is " << ct << + info << "bin target is " << bt; + } } const string& cid (cast (rs["cc.id"])); -- cgit v1.1