aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/install-rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-09-21 10:45:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-09-21 10:45:54 +0200
commita301f5f1b934129a1030eb5c171233fea06694de (patch)
treea809b8406014c85f86381eb73a72fc4fa6f0d568 /libbuild2/cc/install-rule.cxx
parentce14007653e22f7cb8906317d80c5968f7b53a95 (diff)
Fix bug in previous commit
Diffstat (limited to 'libbuild2/cc/install-rule.cxx')
-rw-r--r--libbuild2/cc/install-rule.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/install-rule.cxx b/libbuild2/cc/install-rule.cxx
index ac4a897..b13a7eb 100644
--- a/libbuild2/cc/install-rule.cxx
+++ b/libbuild2/cc/install-rule.cxx
@@ -339,7 +339,7 @@ namespace build2
bool st (t.is_a<libue> () || t.is_a<libus> ()); // Target needs shared.
bool at (t.is_a<libua> () || t.is_a<libus> ()); // Target needs static.
- assert (at || at);
+ assert (st || at);
if ((st && (p.is_a<libx> () || p.is_a<libs> ())) ||
(at && (p.is_a<libx> () || p.is_a<liba> ())))