aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/install-rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-10-07 08:36:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-10-07 08:36:29 +0200
commit7ee735c0a99b29979594920262db13b4939b3c2c (patch)
tree114c36104ea2cc1e1c83001d404616dd803ae954 /libbuild2/cc/install-rule.cxx
parent45ee1a71a27a938db9ffe7218f3a19b585de63b4 (diff)
Verify libraries and targets they are linked to a for-install-compatible
Diffstat (limited to 'libbuild2/cc/install-rule.cxx')
-rw-r--r--libbuild2/cc/install-rule.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/cc/install-rule.cxx b/libbuild2/cc/install-rule.cxx
index 59acaf7..560b8a7 100644
--- a/libbuild2/cc/install-rule.cxx
+++ b/libbuild2/cc/install-rule.cxx
@@ -179,8 +179,11 @@ namespace build2
if (md.for_install)
{
+ // Note: see also append_libraries() for the other half.
+ //
if (!*md.for_install)
- fail << "target " << t << " already updated but not for install";
+ fail << "incompatible " << t << " build" <<
+ info << "target already built not for install";
}
else
md.for_install = true;