From 3740ef0a57116e35445379b8cc31868718729889 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Jan 2021 11:53:59 +0200 Subject: Fix libul{} rule diagnostics --- libbuild2/bin/rule.hxx | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'libbuild2/bin/rule.hxx') 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; -- cgit v1.1