diff options
-rw-r--r-- | libbuild2/dyndep.cxx | 3 | ||||
-rw-r--r-- | libbuild2/target.hxx | 9 |
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: |