aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/in/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/in/init.cxx')
-rw-r--r--libbuild2/in/init.cxx22
1 files changed, 9 insertions, 13 deletions
diff --git a/libbuild2/in/init.cxx b/libbuild2/in/init.cxx
index 95bdb0a..80508b6 100644
--- a/libbuild2/in/init.cxx
+++ b/libbuild2/in/init.cxx
@@ -88,19 +88,15 @@ namespace build2
// Register rules.
//
- {
- auto& r (bs.rules);
-
- // There are rules that are "derived" from this generic in rule in
- // order to provide extended preprocessing functionality (see the
- // version module for an example). To make sure they are tried first
- // we register for path_target, not file, but in rule::match() we only
- // match if the target is a file. A bit of a hack.
- //
- r.insert<path_target> (perform_update_id, "in", rule_);
- r.insert<path_target> (perform_clean_id, "in", rule_);
- r.insert<path_target> (configure_update_id, "in", rule_);
- }
+ // There are rules that are "derived" from this generic in rule in
+ // order to provide extended preprocessing functionality (see the
+ // version module for an example). To make sure they are tried first
+ // we register for path_target, not file, but in rule::match() we only
+ // match if the target is a file. A bit of a hack.
+ //
+ bs.insert_rule<path_target> (perform_update_id, "in", rule_);
+ bs.insert_rule<path_target> (perform_clean_id, "in", rule_);
+ bs.insert_rule<path_target> (configure_update_id, "in", rule_);
return true;
}