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/bash/rule.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libbuild2/bash') diff --git a/libbuild2/bash/rule.cxx b/libbuild2/bash/rule.cxx index 1138227..e0391e3 100644 --- a/libbuild2/bash/rule.cxx +++ b/libbuild2/bash/rule.cxx @@ -91,6 +91,11 @@ namespace build2 if (!md.for_install) md.for_install = false; + //@@ TODO: need to verify all the modules we depend on are compatible + // with our for_install value, similar to cc::link_rule's + // append_libraries() (and which is the other half of the check + // in install_rule). + return rule::perform_update (a, t); } @@ -415,7 +420,8 @@ namespace build2 if (md.for_install) { 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