aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bin/rule.cxx
diff options
context:
space:
mode:
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