aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-01-11 12:40:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-01-11 12:40:22 +0200
commit021723f1346dc54ee37967fb6a8e7219b125cc42 (patch)
tree69729ea066a4825c9b55b6e40d74abbd0fae5eff
parent19e7fce9b415f57d2477bed47b5ebc9eb8fc1d4d (diff)
Work around VC14 bug
-rw-r--r--libbuild2/dyndep.cxx3
-rw-r--r--libbuild2/target.hxx9
2 files changed, 2 insertions, 10 deletions
diff --git a/libbuild2/dyndep.cxx b/libbuild2/dyndep.cxx
index 0865ccb..73fc8eb 100644
--- a/libbuild2/dyndep.cxx
+++ b/libbuild2/dyndep.cxx
@@ -550,7 +550,8 @@ namespace build2
// implied ones because pre-entered members of a target group
// (e.g., cli.cxx) are implied.
//
- if (x->decl >= target_decl::implied)
+ if (x->decl == target_decl::real ||
+ x->decl == target_decl::implied)
{
r = x;
break;
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx
index d584023..4ce871b 100644
--- a/libbuild2/target.hxx
+++ b/libbuild2/target.hxx
@@ -137,15 +137,6 @@ namespace build2
real // Real dependency declaration.
};
- inline bool
- operator< (target_decl l, target_decl r)
- {
- return static_cast<uint8_t> (l) < static_cast<uint8_t> (r);
- }
-
- inline bool
- operator>= (target_decl l, target_decl r) { return !(l < r); }
-
class LIBBUILD2_SYMEXPORT target
{
public: