aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-12-14 08:01:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-12-14 08:01:51 +0200
commit4e8e690640c1dc9ecc78edce1c2e11c28850bfa2 (patch)
treee13d11c9bbbd68d4ad8b6721d42d1f52646dda61 /libbuild2
parentcb558e4bd2b817bc72275c2bbd90dfe9fe380af9 (diff)
Fix incorrect assert in condition
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/cc/link-rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/cc/link-rule.cxx b/libbuild2/cc/link-rule.cxx
index f0fb198..9c0b018 100644
--- a/libbuild2/cc/link-rule.cxx
+++ b/libbuild2/cc/link-rule.cxx
@@ -824,7 +824,7 @@ namespace build2
if (skip (*pt))
m = 3; // Mark so it is not matched.
- // If this is the lib{}/libu{} group, then pick the appropriate
+ // If this is the lib{}/libul{} group, then pick the appropriate
// member.
//
if (const libx* l = pt->is_a<libx> ())
@@ -2130,7 +2130,7 @@ namespace build2
compile_target_types tts (compile_types (ot));
bool binless (md.binless);
- assert (ot != otype::e || !binless); // Sanity check.
+ assert (!lt.executable() || !binless); // Sanity check.
// Determine if we are out-of-date.
//