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.cxx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'libbuild2/bin/rule.cxx') 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 -- cgit v1.1