aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bin/rule.cxx
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.cxx
parent79b711b31f295bbfafb5e239131bd57006775f23 (diff)
Fix libul{} rule diagnostics
Diffstat (limited to 'libbuild2/bin/rule.cxx')
-rw-r--r--libbuild2/bin/rule.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/libbuild2/bin/rule.cxx b/libbuild2/bin/rule.cxx
index 0abfcb5..021a768 100644
--- a/libbuild2/bin/rule.cxx
+++ b/libbuild2/bin/rule.cxx
@@ -17,9 +17,9 @@ namespace build2
{
namespace bin
{
- // fail_rule
+ // obj_rule
//
- bool fail_rule::
+ bool obj_rule::
match (action a, target& t, const string&) const
{
const char* n (t.dynamic_type ().name); // Ignore derived type.
@@ -29,7 +29,19 @@ namespace build2
<< n << "s{} member" << endf;
}
- recipe fail_rule::
+ recipe obj_rule::
+ apply (action, target&) const {return empty_recipe;}
+
+ // libul_rule
+ //
+ bool libul_rule::
+ match (action a, target& t, const string&) const
+ {
+ fail << diag_doing (a, t) << " target group" <<
+ info << "explicitly select libua{} or libus{} member" << endf;
+ }
+
+ recipe libul_rule::
apply (action, target&) const {return empty_recipe;}
// lib_rule