aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/init.cxx')
-rw-r--r--build2/cc/init.cxx10
1 files changed, 7 insertions, 3 deletions
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<target_triplet> (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<string> (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<string> (rs["cc.id"]));