From d14d3123c7cdb53a635d4be55902c09a410c28cc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Jul 2017 16:18:26 +0200 Subject: Fix bug in new utility library logic --- build2/cc/types.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build2/cc/types.hxx b/build2/cc/types.hxx index 417370f..b575dc7 100644 --- a/build2/cc/types.hxx +++ b/build2/cc/types.hxx @@ -66,7 +66,7 @@ namespace build2 otype type; bool utility; // True for utility libraries. - bool executable () const {return type == otype::e || !utility;} + bool executable () const {return type == otype::e && !utility;} bool library () const {return type != otype::e || utility;} bool static_library () const {return type == otype::a || utility;} bool shared_library () const {return type == otype::s && !utility;} -- cgit v1.1