diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-08 13:10:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 08:35:29 +0200 |
commit | 66b6e20659a0d611e89adde85cd7bcb34a92a2c7 (patch) | |
tree | 9b78f9ad9f45011be4b5d04574fe8bb76d5cc867 /libbuild2/rule.hxx | |
parent | a5bf818ebb55e4e27eb0f067664fd4db70284267 (diff) |
Use recipe data in ad hoc rule
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r-- | libbuild2/rule.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx index d712957..669f7db 100644 --- a/libbuild2/rule.hxx +++ b/libbuild2/rule.hxx @@ -111,7 +111,7 @@ namespace build2 // Ad hoc recipe rule. // - // Note: should not be used directly (e.g., registered, etc). + // Note: should not be used directly (i.e., registered). // class LIBBUILD2_SYMEXPORT adhoc_rule: public rule { @@ -123,7 +123,10 @@ namespace build2 apply (action, target&) const override; static target_state - perform_update (action, const target&, const adhoc_recipe&); + perform_update_file (action, const target&, const adhoc_recipe&); + + static target_state + default_action (action, const target&, const adhoc_recipe&); adhoc_rule () {} static const adhoc_rule instance; |