aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-01-10 08:40:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-01-10 08:40:34 +0200
commit59dedd5cf8ab8d4b1cae3faed952982749e6f59a (patch)
tree2b5256e49c2cb268777456b4ac7946b0440fe9f7 /libbuild2/target.hxx
parentb236b111e52d08245d9bc1caadd6b78f7723f42c (diff)
Consider implied targets when resolving dynamic dependencies
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r--libbuild2/target.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx
index 4ce871b..d584023 100644
--- a/libbuild2/target.hxx
+++ b/libbuild2/target.hxx
@@ -137,6 +137,15 @@ 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: