From 7ee735c0a99b29979594920262db13b4939b3c2c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Oct 2021 08:36:29 +0200 Subject: Verify libraries and targets they are linked to a for-install-compatible --- libbuild2/cc/install-rule.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libbuild2/cc/install-rule.cxx') 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; -- cgit v1.1