aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bin/rule.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-01-11 11:53:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-01-11 11:53:59 +0200
commit3740ef0a57116e35445379b8cc31868718729889 (patch)
tree22e490e578154d3a62dd7888f020e5d29215eef6 /libbuild2/bin/rule.hxx
parent79b711b31f295bbfafb5e239131bd57006775f23 (diff)
Fix libul{} rule diagnostics
Diffstat (limited to 'libbuild2/bin/rule.hxx')
-rw-r--r--libbuild2/bin/rule.hxx23
1 files changed, 19 insertions, 4 deletions
diff --git a/libbuild2/bin/rule.hxx b/libbuild2/bin/rule.hxx
index 51693a7..ffb975d 100644
--- a/libbuild2/bin/rule.hxx
+++ b/libbuild2/bin/rule.hxx
@@ -15,13 +15,28 @@ namespace build2
{
namespace bin
{
- // "Fail rule" for obj{}, [h]bmi{}, and libu{} that issues diagnostics if
- // someone tries to build any of these groups directly.
+ // "Fail rule" for obj{} and [h]bmi{} that issues diagnostics if someone
+ // tries to build these groups directly.
//
- class fail_rule: public simple_rule
+ class obj_rule: public simple_rule
{
public:
- fail_rule () {}
+ obj_rule () {}
+
+ virtual bool
+ match (action, target&, const string&) const override;
+
+ virtual recipe
+ apply (action, target&) const override;
+ };
+
+ // "Fail rule" for libul{} that issues diagnostics if someone tries to
+ // build this group directly.
+ //
+ class libul_rule: public simple_rule
+ {
+ public:
+ libul_rule () {}
virtual bool
match (action, target&, const string&) const override;