aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/cc/types.hxx2
1 files changed, 1 insertions, 1 deletions
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;}