From 4e8e690640c1dc9ecc78edce1c2e11c28850bfa2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Dec 2020 08:01:51 +0200 Subject: Fix incorrect assert in condition --- libbuild2/cc/link-rule.cxx | 4 ++-- 1 file 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 ()) @@ -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. // -- cgit v1.1