diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-01-11 11:53:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-01-11 11:53:59 +0200 |
commit | 3740ef0a57116e35445379b8cc31868718729889 (patch) | |
tree | 22e490e578154d3a62dd7888f020e5d29215eef6 /libbuild2/bin/rule.hxx | |
parent | 79b711b31f295bbfafb5e239131bd57006775f23 (diff) |
Fix libul{} rule diagnostics
Diffstat (limited to 'libbuild2/bin/rule.hxx')
-rw-r--r-- | libbuild2/bin/rule.hxx | 23 |
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; |